SPKAC is a Certificate Signing Request mechanism originally implemented by Netscape and now specified formally as part of HTML5's keygen element.

Constructor

new()

Methods

exportChallenge(spkac:Buffer):Buffer

exportChallenge(spkac:String):Buffer

Returns the challenge component in the form of a Node.js Buffer.

The spkac data structure includes a public key and a challenge.

exportPublicKey(spkac:Buffer):Buffer

exportPublicKey(spkac:String):Buffer

Returns the public key component in the form of a Node.js Buffer.

The spkac data structure includes a public key and a challenge.

verifySpkac(spkac:Buffer):Bool

Returns true if the given spkac data structure is valid, false otherwise.