Make pkijsToPem return generic private key PEM
This commit is contained in:
parent
e2077a89cf
commit
4ee487073d
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user