From 6623fc6335b687797c7782078c9c3f952adc469c Mon Sep 17 00:00:00 2001 From: Nick Daugherty Date: Fri, 8 Apr 2016 12:19:26 -0600 Subject: [PATCH] Allow commas in CSR fields For Organizations like `Facebook, Inc.`. Fixes #73 --- lib/pem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pem.js b/lib/pem.js index 6cde7b4b..e56e406e 100644 --- a/lib/pem.js +++ b/lib/pem.js @@ -880,7 +880,7 @@ function generateCSRSubject(options) { Object.keys(csrData).forEach(function(key) { if (csrData[key]) { - csrBuilder.push('/' + key + '=' + csrData[key].replace(/[^\w \.\*\-@]+/g, ' ').trim()); + csrBuilder.push('/' + key + '=' + csrData[key].replace(/[^\w \.\*\-\,@]+/g, ' ').trim()); } });