@ -39,14 +39,14 @@ server.listen(0, common.mustCall(function() {
passphrase : 'passphrase' ,
cert : cert ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
key : rawKey ,
cert : cert ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
@ -54,7 +54,7 @@ server.listen(0, common.mustCall(function() {
passphrase : 'ignored' ,
cert : cert ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
// Buffer[]
tls . connect ( {
@ -63,14 +63,14 @@ server.listen(0, common.mustCall(function() {
passphrase : 'passphrase' ,
cert : [ cert ] ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
key : [ rawKey ] ,
cert : [ cert ] ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
@ -78,7 +78,7 @@ server.listen(0, common.mustCall(function() {
passphrase : 'ignored' ,
cert : [ cert ] ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
// string
tls . connect ( {
@ -87,14 +87,14 @@ server.listen(0, common.mustCall(function() {
passphrase : 'passphrase' ,
cert : cert . toString ( ) ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
key : rawKey . toString ( ) ,
cert : cert . toString ( ) ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
@ -102,7 +102,7 @@ server.listen(0, common.mustCall(function() {
passphrase : 'ignored' ,
cert : cert . toString ( ) ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
// String[]
tls . connect ( {
@ -111,14 +111,14 @@ server.listen(0, common.mustCall(function() {
passphrase : 'passphrase' ,
cert : [ cert . toString ( ) ] ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
key : [ rawKey . toString ( ) ] ,
cert : [ cert . toString ( ) ] ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
@ -126,7 +126,7 @@ server.listen(0, common.mustCall(function() {
passphrase : 'ignored' ,
cert : [ cert . toString ( ) ] ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
// Object[]
tls . connect ( {
@ -134,7 +134,7 @@ server.listen(0, common.mustCall(function() {
key : [ { pem : passKey , passphrase : 'passphrase' } ] ,
cert : cert ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
@ -142,7 +142,7 @@ server.listen(0, common.mustCall(function() {
passphrase : 'ignored' ,
cert : cert ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
@ -150,28 +150,28 @@ server.listen(0, common.mustCall(function() {
passphrase : 'passphrase' ,
cert : cert ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
key : [ { pem : passKey . toString ( ) , passphrase : 'passphrase' } ] ,
cert : cert ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
key : [ { pem : rawKey , passphrase : 'ignored' } ] ,
cert : cert ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
key : [ { pem : rawKey . toString ( ) , passphrase : 'ignored' } ] ,
cert : cert ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
@ -179,7 +179,7 @@ server.listen(0, common.mustCall(function() {
passphrase : 'ignored' ,
cert : cert ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
@ -187,21 +187,21 @@ server.listen(0, common.mustCall(function() {
passphrase : 'ignored' ,
cert : cert ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
key : [ { pem : rawKey } ] ,
cert : cert ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
tls . connect ( {
port : this . address ( ) . port ,
key : [ { pem : rawKey . toString ( ) } ] ,
cert : cert ,
rejectUnauthorized : false
} , common . mustCall ( function ( ) { } ) ) ;
} , common . mustCall ( ) ) ;
} ) ) . unref ( ) ;
const errMessagePassword = /bad password read/ ;