summaryrefslogtreecommitdiff
path: root/test/internet/test-tls-connnect-melissadata.js
diff options
context:
space:
mode:
authorShigeki Ohtsu <ohtsu@iij.ad.jp>2015-03-13 09:55:29 +0900
committerShigeki Ohtsu <ohtsu@iij.ad.jp>2015-03-13 20:18:54 +0900
commitd8c4a932c9a50b7c456baabfbba046b9e4f09dd1 (patch)
tree770acadcded1ab82d1016544d09f2597d8892b80 /test/internet/test-tls-connnect-melissadata.js
parent82f067e60bb3eb87cc1119655ae0a5968e988326 (diff)
downloadnodejs-d8c4a932c9a50b7c456baabfbba046b9e4f09dd1.tar.gz
nodejs-d8c4a932c9a50b7c456baabfbba046b9e4f09dd1.tar.bz2
nodejs-d8c4a932c9a50b7c456baabfbba046b9e4f09dd1.zip
crypto: add deprecated ValiCert CA for cross cert
The host of melissadata.net has a cross root certification between Starfield Class 2 and ValiCert Class 2. OpenSSL-1.0.1 only looks up a cert chain to the deprecated ValiCert Class 2 CA and causes untrusted error. We add it for a short-term remedy and it is to be removed after upgrading OpenSSSL-1.0.2 and applying private patches to support alternative cert chains. See #402 and #589. Fixes: https://github.com/iojs/io.js/issues/923 PR-URL: https://github.com/iojs/io.js/pull/1135 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/internet/test-tls-connnect-melissadata.js')
-rw-r--r--test/internet/test-tls-connnect-melissadata.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/internet/test-tls-connnect-melissadata.js b/test/internet/test-tls-connnect-melissadata.js
new file mode 100644
index 000000000..61239c89c
--- /dev/null
+++ b/test/internet/test-tls-connnect-melissadata.js
@@ -0,0 +1,7 @@
+// Test for authorized access to the server which has a cross root
+// certification between Starfield Class 2 and ValiCert Class 2
+var tls = require('tls');
+var socket = tls.connect(443, 'address.melissadata.net', function() {
+ socket.resume();
+ socket.destroy();
+});