@@ -213,7 +213,8 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
213
213
const publicKey = { key : publicKeyDER , ...publicKeyEncoding } ;
214
214
const expectedError = common . hasOpenSSL3 ? {
215
215
name : 'Error' ,
216
- message : 'Failed to read private key'
216
+ message : 'error:07880109:common libcrypto routines::interrupted or ' +
217
+ 'cancelled'
217
218
} : {
218
219
name : 'TypeError' ,
219
220
code : 'ERR_MISSING_PASSPHRASE' ,
@@ -477,7 +478,8 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
477
478
// Since the private key is encrypted, signing shouldn't work anymore.
478
479
assert . throws ( ( ) => testSignVerify ( publicKey , privateKey ) ,
479
480
common . hasOpenSSL3 ? {
480
- message : 'Failed to read private key'
481
+ message : 'error:07880109:common libcrypto ' +
482
+ 'routines::interrupted or cancelled'
481
483
} : {
482
484
name : 'TypeError' ,
483
485
code : 'ERR_MISSING_PASSPHRASE' ,
@@ -510,7 +512,8 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
510
512
// Since the private key is encrypted, signing shouldn't work anymore.
511
513
assert . throws ( ( ) => testSignVerify ( publicKey , privateKey ) ,
512
514
common . hasOpenSSL3 ? {
513
- message : 'Failed to read private key'
515
+ message : 'error:07880109:common libcrypto ' +
516
+ 'routines::interrupted or cancelled'
514
517
} : {
515
518
name : 'TypeError' ,
516
519
code : 'ERR_MISSING_PASSPHRASE' ,
@@ -546,7 +549,8 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
546
549
// Since the private key is encrypted, signing shouldn't work anymore.
547
550
assert . throws ( ( ) => testSignVerify ( publicKey , privateKey ) ,
548
551
common . hasOpenSSL3 ? {
549
- message : 'Failed to read private key'
552
+ message : 'error:07880109:common libcrypto ' +
553
+ 'routines::interrupted or cancelled'
550
554
} : {
551
555
name : 'TypeError' ,
552
556
code : 'ERR_MISSING_PASSPHRASE' ,
@@ -583,7 +587,8 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
583
587
// Since the private key is encrypted, signing shouldn't work anymore.
584
588
assert . throws ( ( ) => testSignVerify ( publicKey , privateKey ) ,
585
589
common . hasOpenSSL3 ? {
586
- message : 'Failed to read private key'
590
+ message : 'error:07880109:common libcrypto ' +
591
+ 'routines::interrupted or cancelled'
587
592
} : {
588
593
name : 'TypeError' ,
589
594
code : 'ERR_MISSING_PASSPHRASE' ,
0 commit comments