@@ -28,9 +28,9 @@ const assert = require('assert');
28
28
const tls = require ( 'tls' ) ;
29
29
const fixtures = require ( '../common/fixtures' ) ;
30
30
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 ') ;
34
34
35
35
assert ( Buffer . isBuffer ( passKey ) ) ;
36
36
assert ( Buffer . isBuffer ( cert ) ) ;
@@ -39,7 +39,7 @@ assert.strictEqual(typeof cert.toString(), 'string');
39
39
40
40
const server = tls . Server ( {
41
41
key : passKey ,
42
- passphrase : 'passphrase ' ,
42
+ passphrase : 'password ' ,
43
43
cert : cert ,
44
44
ca : [ cert ] ,
45
45
requestCert : true ,
@@ -53,7 +53,7 @@ server.listen(0, common.mustCall(function() {
53
53
tls . connect ( {
54
54
port : this . address ( ) . port ,
55
55
key : passKey ,
56
- passphrase : 'passphrase ' ,
56
+ passphrase : 'password ' ,
57
57
cert : cert ,
58
58
rejectUnauthorized : false
59
59
} , common . mustCall ( ) ) ;
@@ -77,7 +77,7 @@ server.listen(0, common.mustCall(function() {
77
77
tls . connect ( {
78
78
port : this . address ( ) . port ,
79
79
key : [ passKey ] ,
80
- passphrase : 'passphrase ' ,
80
+ passphrase : 'password ' ,
81
81
cert : [ cert ] ,
82
82
rejectUnauthorized : false
83
83
} , common . mustCall ( ) ) ;
@@ -101,7 +101,7 @@ server.listen(0, common.mustCall(function() {
101
101
tls . connect ( {
102
102
port : this . address ( ) . port ,
103
103
key : passKey . toString ( ) ,
104
- passphrase : 'passphrase ' ,
104
+ passphrase : 'password ' ,
105
105
cert : cert . toString ( ) ,
106
106
rejectUnauthorized : false
107
107
} , common . mustCall ( ) ) ;
@@ -125,7 +125,7 @@ server.listen(0, common.mustCall(function() {
125
125
tls . connect ( {
126
126
port : this . address ( ) . port ,
127
127
key : [ passKey . toString ( ) ] ,
128
- passphrase : 'passphrase ' ,
128
+ passphrase : 'password ' ,
129
129
cert : [ cert . toString ( ) ] ,
130
130
rejectUnauthorized : false
131
131
} , common . mustCall ( ) ) ;
@@ -148,14 +148,14 @@ server.listen(0, common.mustCall(function() {
148
148
// Object[]
149
149
tls . connect ( {
150
150
port : this . address ( ) . port ,
151
- key : [ { pem : passKey , passphrase : 'passphrase ' } ] ,
151
+ key : [ { pem : passKey , passphrase : 'password ' } ] ,
152
152
cert : cert ,
153
153
rejectUnauthorized : false
154
154
} , common . mustCall ( ) ) ;
155
155
156
156
tls . connect ( {
157
157
port : this . address ( ) . port ,
158
- key : [ { pem : passKey , passphrase : 'passphrase ' } ] ,
158
+ key : [ { pem : passKey , passphrase : 'password ' } ] ,
159
159
passphrase : 'ignored' ,
160
160
cert : cert ,
161
161
rejectUnauthorized : false
@@ -164,14 +164,14 @@ server.listen(0, common.mustCall(function() {
164
164
tls . connect ( {
165
165
port : this . address ( ) . port ,
166
166
key : [ { pem : passKey } ] ,
167
- passphrase : 'passphrase ' ,
167
+ passphrase : 'password ' ,
168
168
cert : cert ,
169
169
rejectUnauthorized : false
170
170
} , common . mustCall ( ) ) ;
171
171
172
172
tls . connect ( {
173
173
port : this . address ( ) . port ,
174
- key : [ { pem : passKey . toString ( ) , passphrase : 'passphrase ' } ] ,
174
+ key : [ { pem : passKey . toString ( ) , passphrase : 'password ' } ] ,
175
175
cert : cert ,
176
176
rejectUnauthorized : false
177
177
} , common . mustCall ( ) ) ;
@@ -288,7 +288,7 @@ assert.throws(function() {
288
288
tls . connect ( {
289
289
port : server . address ( ) . port ,
290
290
key : [ { pem : passKey , passphrase : 'invalid' } ] ,
291
- passphrase : 'passphrase ' , // Valid but unused
291
+ passphrase : 'password ' , // Valid but unused
292
292
cert : cert ,
293
293
rejectUnauthorized : false
294
294
} ) ;
0 commit comments