Skip to content

Commit

Permalink
Allow commas in CSR fields (#74)
Browse files Browse the repository at this point in the history
For Organizations like `Facebook, Inc.`.

Fixes #73
  • Loading branch information
nickdaugherty authored and Dexus committed May 2, 2016
1 parent 5de4a26 commit e72a48c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
});

Expand Down

0 comments on commit e72a48c

Please sign in to comment.