Skip to content

Commit

Permalink
#29 tests fail with openssl 1.1.0e because of extra spaces in DN output
Browse files Browse the repository at this point in the history
Reviewed by: Cody Peter Mello <cody.mello@joyent.com>
  • Loading branch information
arekinath committed May 26, 2017
1 parent 61aa616 commit 78cf827
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/openssl-cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,12 @@ function genTests() {
var output = Buffer.concat(bufs).toString();

var m = output.match(/Issuer: (.*)$/m);
t.strictEqual(m[1], 'CN=' + algo + ', C=US');
t.strictEqual(m[1].replace(/ = /g, '='),
'CN=' + algo + ', C=US');

m = output.match(/Subject: (.*)$/m);
t.strictEqual(m[1], 'CN=' + algo + ', C=US');
t.strictEqual(m[1].replace(/ = /g, '='),
'CN=' + algo + ', C=US');

var re = /DNS:([^, \n]+)([, ]+|$)/gm;
m = re.exec(output);
Expand Down

0 comments on commit 78cf827

Please sign in to comment.