@@ -28,9 +28,9 @@ const assert = require('assert');
2828const tls = require ( 'tls' ) ;
2929const fixtures = require ( '../common/fixtures' ) ;
3030
31- const passKey = fixtures . readSync ( 'pass-key .pem') ;
32- const rawKey = fixtures . readSync ( 'raw-key .pem') ;
33- const cert = fixtures . readSync ( 'pass-cert.pem ') ;
31+ const passKey = fixtures . readKey ( 'rsa_private_encrypted .pem') ;
32+ const rawKey = fixtures . readKey ( 'rsa_private .pem') ;
33+ const cert = fixtures . readKey ( 'rsa_cert.crt ') ;
3434
3535assert ( Buffer . isBuffer ( passKey ) ) ;
3636assert ( Buffer . isBuffer ( cert ) ) ;
@@ -39,7 +39,7 @@ assert.strictEqual(typeof cert.toString(), 'string');
3939
4040const server = tls . Server ( {
4141key : passKey ,
42- passphrase : 'passphrase ' ,
42+ passphrase : 'password ' ,
4343cert : cert ,
4444ca : [ cert ] ,
4545requestCert : true ,
@@ -53,7 +53,7 @@ server.listen(0, common.mustCall(function() {
5353tls . connect ( {
5454port : this . address ( ) . port ,
5555key : passKey ,
56- passphrase : 'passphrase ' ,
56+ passphrase : 'password ' ,
5757cert : cert ,
5858rejectUnauthorized : false
5959} , common . mustCall ( ) ) ;
@@ -77,7 +77,7 @@ server.listen(0, common.mustCall(function() {
7777tls . connect ( {
7878port : this . address ( ) . port ,
7979key : [ passKey ] ,
80- passphrase : 'passphrase ' ,
80+ passphrase : 'password ' ,
8181cert : [ cert ] ,
8282rejectUnauthorized : false
8383} , common . mustCall ( ) ) ;
@@ -101,7 +101,7 @@ server.listen(0, common.mustCall(function() {
101101tls . connect ( {
102102port : this . address ( ) . port ,
103103key : passKey . toString ( ) ,
104- passphrase : 'passphrase ' ,
104+ passphrase : 'password ' ,
105105cert : cert . toString ( ) ,
106106rejectUnauthorized : false
107107} , common . mustCall ( ) ) ;
@@ -125,7 +125,7 @@ server.listen(0, common.mustCall(function() {
125125tls . connect ( {
126126port : this . address ( ) . port ,
127127key : [ passKey . toString ( ) ] ,
128- passphrase : 'passphrase ' ,
128+ passphrase : 'password ' ,
129129cert : [ cert . toString ( ) ] ,
130130rejectUnauthorized : false
131131} , common . mustCall ( ) ) ;
@@ -148,14 +148,14 @@ server.listen(0, common.mustCall(function() {
148148// Object[]
149149tls . connect ( {
150150port : this . address ( ) . port ,
151- key : [ { pem : passKey , passphrase : 'passphrase ' } ] ,
151+ key : [ { pem : passKey , passphrase : 'password ' } ] ,
152152cert : cert ,
153153rejectUnauthorized : false
154154} , common . mustCall ( ) ) ;
155155
156156tls . connect ( {
157157port : this . address ( ) . port ,
158- key : [ { pem : passKey , passphrase : 'passphrase ' } ] ,
158+ key : [ { pem : passKey , passphrase : 'password ' } ] ,
159159passphrase : 'ignored' ,
160160cert : cert ,
161161rejectUnauthorized : false
@@ -164,14 +164,14 @@ server.listen(0, common.mustCall(function() {
164164tls . connect ( {
165165port : this . address ( ) . port ,
166166key : [ { pem : passKey } ] ,
167- passphrase : 'passphrase ' ,
167+ passphrase : 'password ' ,
168168cert : cert ,
169169rejectUnauthorized : false
170170} , common . mustCall ( ) ) ;
171171
172172tls . connect ( {
173173port : this . address ( ) . port ,
174- key : [ { pem : passKey . toString ( ) , passphrase : 'passphrase ' } ] ,
174+ key : [ { pem : passKey . toString ( ) , passphrase : 'password ' } ] ,
175175cert : cert ,
176176rejectUnauthorized : false
177177} , common . mustCall ( ) ) ;
@@ -288,7 +288,7 @@ assert.throws(function() {
288288tls . connect ( {
289289port : server . address ( ) . port ,
290290key : [ { pem : passKey , passphrase : 'invalid' } ] ,
291- passphrase : 'passphrase ' , // Valid but unused
291+ passphrase : 'password ' , // Valid but unused
292292cert : cert ,
293293rejectUnauthorized : false
294294} ) ;
0 commit comments