Constructors
constructor
- new Key(key: string, cert: string): Key
Properties
certificate
certificate: Certificate
privateKey
privateKey: string
Methods
getBase64Certificate
- getBase64Certificate(): string
isAboutToExpire
- isAboutToExpire(): boolean
Static generateKey
- generateKey(): Promise<any>
Key object contains RSA private and public key pair.
This class also offers convinience methods for converting between file formats. (wrappers for node-forge and nodejs crypto modules)