Make pkijsToPem return generic private key PEM

This commit is contained in:
pehmo1 2021-08-17 22:36:12 +03:00
parent e2077a89cf
commit 4ee487073d

View File

@ -35,7 +35,7 @@ export function pkijsToPem(pkijsObj) {
String.fromCharCode.apply(null, new Uint8Array(privKeyExported)) String.fromCharCode.apply(null, new Uint8Array(privKeyExported))
) )
); );
resolve(`-----BEGIN RSA PRIVATE KEY-----\r\n${privKeyBody}\r\n-----END RSA PRIVATE KEY-----\r\n`); resolve(`-----BEGIN PRIVATE KEY-----\r\n${privKeyBody}\r\n-----END PRIVATE KEY-----\r\n`);
break; break;
case "CertificationRequest": case "CertificationRequest":