Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

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

Fixes Dexus#73
  • Loading branch information
nickdaugherty committed Apr 8, 2016
1 parent 5de4a26 commit 6623fc6
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 6623fc6

Please sign in to comment.