fix(core): update

This commit is contained in:
Philipp Kunz 2019-10-01 19:41:34 +02:00
parent 5192008320
commit f3d63e027f
2 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,10 @@ export class PrivateKey {
return new PrivateKey(privateKey);
}
public static fromPemString(pemString: string) {
return new PrivateKey(plugins.nodeForge.pki.privateKeyFromPem(pemString));
}
// INSTANCE
public forgePrivateKey: plugins.nodeForge.pki.PrivateKey;

View File

@ -7,6 +7,10 @@ export class PublicKey {
return new PublicKey(privateKey);
}
public static fromPemString(pemString: string) {
return new PublicKey(plugins.nodeForge.pki.publicKeyFromPem(pemString));
}
// INSTANCE
public forgePublicKey: plugins.nodeForge.pki.PublicKey;