From 59fb26c9a02b6464922ef71804660ad8a01bcfd8 Mon Sep 17 00:00:00 2001 From: Alan Cohen Date: Wed, 27 Jan 2016 16:01:19 -0800 Subject: [PATCH] test: Add assertion for TLS peer certificate fingerprint PR-URL: https://github.com/nodejs/node/pull/4923 Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell --- test/parallel/test-tls-peer-certificate.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-tls-peer-certificate.js b/test/parallel/test-tls-peer-certificate.js index cdf8bf5644f675..e043c5933b98ed 100644 --- a/test/parallel/test-tls-peer-certificate.js +++ b/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/' ]);