forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 nodejs#402 and nodejs#589. Fixes: nodejs#923
- Loading branch information
Shigeki Ohtsu
committed
Mar 13, 2015
1 parent
82f067e
commit 414adfa
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
}); |