ClientCertFactory

Classes

ClientCertFactory

Methods

(inner) PEM2BUF(pem) → {ArrayBuffer}

Source:
Convert a PEM file with `-----BEGIN ...-----` padding into a base64 buffer, to be parsed for data.
Parameters:
Name Type Description
pem string a ASN1 structure in PEM format
Returns:
An ArrayBuffer containing the data.
Type
ArrayBuffer

(inner) promisifyOpenSSL(…arguments) → {Promise}

Source:
Parameters:
Name Type Attributes Description
arguments Array.<any> <repeatable>
The arguments to the openSSL function, minus the callback at the end.
Returns:
A tuple with the result of the function in the first spot, and the OpenSSL comment used in the second. The promise will reject if the OpenSSL command fails.
Type
Promise

(inner) stripPEM(pem) → {string}

Source:
Remove the `-----BEGIN ...-----` statements and newlines from a PEM file.
Parameters:
Name Type Description
pem string a PEM file
Returns:
a raw base64 string
Type
string