Skip to content

Commit

Permalink
Handle slproweb.com openssl Binaries outputting ' = ' rather than '='…
Browse files Browse the repository at this point in the history
… to separate subject fields (#98)
  • Loading branch information
mikemaccana authored and Dexus committed Dec 6, 2016
1 parent 8033546 commit 46de22c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pem.js
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,10 @@ function verifySigningChain(certificate, ca, callback) {

function fetchCertificateData(certData, callback) {
certData = (certData || '').toString();

// slproweb.com Windows openssl binaries output ' = ' rather than '='
certData = certData.replace(/ = /g, '=');

var serial, subject, subject2, extra, tmp, issuer, issuer2, certValues = {issuer:{}};
var validity = {};
var san;
Expand Down

0 comments on commit 46de22c

Please sign in to comment.