@@ -213,7 +213,8 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
213213 const publicKey = { key : publicKeyDER , ...publicKeyEncoding } ;
214214 const expectedError = common . hasOpenSSL3 ? {
215215 name : 'Error' ,
216- message : 'Failed to read private key'
216+ message : 'error:07880109:common libcrypto routines::interrupted or ' +
217+ 'cancelled'
217218 } : {
218219 name : 'TypeError' ,
219220 code : 'ERR_MISSING_PASSPHRASE' ,
@@ -477,7 +478,8 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
477478 // Since the private key is encrypted, signing shouldn't work anymore.
478479 assert . throws ( ( ) => testSignVerify ( publicKey , privateKey ) ,
479480 common . hasOpenSSL3 ? {
480- message : 'Failed to read private key'
481+ message : 'error:07880109:common libcrypto ' +
482+ 'routines::interrupted or cancelled'
481483 } : {
482484 name : 'TypeError' ,
483485 code : 'ERR_MISSING_PASSPHRASE' ,
@@ -510,7 +512,8 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
510512 // Since the private key is encrypted, signing shouldn't work anymore.
511513 assert . throws ( ( ) => testSignVerify ( publicKey , privateKey ) ,
512514 common . hasOpenSSL3 ? {
513- message : 'Failed to read private key'
515+ message : 'error:07880109:common libcrypto ' +
516+ 'routines::interrupted or cancelled'
514517 } : {
515518 name : 'TypeError' ,
516519 code : 'ERR_MISSING_PASSPHRASE' ,
@@ -546,7 +549,8 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
546549 // Since the private key is encrypted, signing shouldn't work anymore.
547550 assert . throws ( ( ) => testSignVerify ( publicKey , privateKey ) ,
548551 common . hasOpenSSL3 ? {
549- message : 'Failed to read private key'
552+ message : 'error:07880109:common libcrypto ' +
553+ 'routines::interrupted or cancelled'
550554 } : {
551555 name : 'TypeError' ,
552556 code : 'ERR_MISSING_PASSPHRASE' ,
@@ -583,7 +587,8 @@ const sec1EncExp = (cipher) => getRegExpForPEM('EC PRIVATE KEY', cipher);
583587 // Since the private key is encrypted, signing shouldn't work anymore.
584588 assert . throws ( ( ) => testSignVerify ( publicKey , privateKey ) ,
585589 common . hasOpenSSL3 ? {
586- message : 'Failed to read private key'
590+ message : 'error:07880109:common libcrypto ' +
591+ 'routines::interrupted or cancelled'
587592 } : {
588593 name : 'TypeError' ,
589594 code : 'ERR_MISSING_PASSPHRASE' ,
0 commit comments