|
|
@ -18,7 +18,12 @@ var caPem = fs.readFileSync(common.fixturesDir+"/test_ca.pem", 'ascii'); |
|
|
|
var certPem = fs.readFileSync(common.fixturesDir+"/test_cert.pem", 'ascii'); |
|
|
|
var keyPem = fs.readFileSync(common.fixturesDir+"/test_key.pem", 'ascii'); |
|
|
|
|
|
|
|
var credentials = crypto.createCredentials({key:keyPem, cert:certPem, ca:caPem}); |
|
|
|
try{ |
|
|
|
var credentials = crypto.createCredentials({key:keyPem, cert:certPem, ca:caPem}); |
|
|
|
} catch (e) { |
|
|
|
console.log("Not compiled with OPENSSL support."); |
|
|
|
process.exit(); |
|
|
|
} |
|
|
|
|
|
|
|
var testData = "TEST123"; |
|
|
|
var serverData = ''; |
|
|
@ -96,4 +101,4 @@ secureServer.addListener("listening", function() { |
|
|
|
process.addListener("exit", function () { |
|
|
|
assert.ok(gotSecureServer, "Did not get secure event for server"); |
|
|
|
assert.ok(gotSecureClient, "Did not get secure event for clientr"); |
|
|
|
}); |
|
|
|
}); |
|
|
|