Skip to content

Commit

Permalink
test: Add assertion for TLS peer certificate fingerprint
Browse files Browse the repository at this point in the history
PR-URL: #4923
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
Alan Cohen committed Jan 30, 2016
1 parent fcae05e commit 7b61f02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-tls-peer-certificate.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ server.listen(common.PORT, function() {
assert.equal(peerCert.subject.emailAddress, 'ry@tinyclouds.org');
assert.equal(peerCert.serialNumber, '9A84ABCFB8A72AC0');
assert.equal(peerCert.exponent, '0x10001');
assert.equal(peerCert.fingerprint,
'8D:06:3A:B3:E5:8B:85:29:72:4F:7D:1B:54:CD:95:19:3C:EF:6F:AA');
assert.deepEqual(peerCert.infoAccess['OCSP - URI'],
[ 'http://ocsp.nodejs.org/' ]);

Expand Down

0 comments on commit 7b61f02

Please sign in to comment.