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
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export function pkijsToPem(pkijsObj) {
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;
case "CertificationRequest":