Skip to content
Permalink
Browse files

test: Add assertion for TLS peer certificate fingerprint

PR-URL: #4923
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
Alan Cohen authored and MylesBorins committed Jan 28, 2016
1 parent ab5cb05 commit f5d29d7ac41a9192d53c8e118a4a4e592ff3c070
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/parallel/test-tls-peer-certificate.js
@@ -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/' ]);

0 comments on commit f5d29d7

Please sign in to comment.
You can’t perform that action at this time.