You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
594 B

'use strict';
//
// The server cert of www1.cnnic.cn is listed in the whitelist of
// {
// { 0x1B, 0xF4, 0x8A, 0x83, 0x3C, 0xE4, 0x05, 0x64, 0x8C, 0xC0, 0xBD, 0xD3,
// 0xB5, 0xB8, 0xC1, 0x8E, 0xB5, 0x13, 0x15, 0x34, 0x29, 0x3A, 0xB2, 0x63,
// 0x44, 0xB5, 0x00, 0x76, 0x48, 0x11, 0x41, 0xED },
// },
// in src/CNNICHashWhitelist.inc
var common = require('../common');
if (!common.hasCrypto) {
console.log('1..0 # Skipped: missing crypto');
return;
}
var tls = require('tls');
var socket = tls.connect(443, 'www1.cnnic.cn', function() {
socket.resume();
socket.destroy();
});