Lines Matching refs:spkac
56 ### `Certificate.exportChallenge(spkac)`
61 * `spkac` {string | Buffer | TypedArray | DataView}
62 * Returns: {Buffer} The challenge component of the `spkac` data structure, which
67 const spkac = getSpkacSomehow();
68 const challenge = Certificate.exportChallenge(spkac);
73 ### `Certificate.exportPublicKey(spkac[, encoding])`
78 * `spkac` {string | Buffer | TypedArray | DataView}
79 * `encoding` {string} The [encoding][] of the `spkac` string.
80 * Returns: {Buffer} The public key component of the `spkac` data structure,
85 const spkac = getSpkacSomehow();
86 const publicKey = Certificate.exportPublicKey(spkac);
91 ### `Certificate.verifySpkac(spkac)`
96 * `spkac` {Buffer | TypedArray | DataView}
97 * Returns: {boolean} `true` if the given `spkac` data structure is valid,
102 const spkac = getSpkacSomehow();
103 console.log(Certificate.verifySpkac(Buffer.from(spkac)));
126 #### `certificate.exportChallenge(spkac)`
131 * `spkac` {string | Buffer | TypedArray | DataView}
132 * Returns: {Buffer} The challenge component of the `spkac` data structure, which
137 const spkac = getSpkacSomehow();
138 const challenge = cert.exportChallenge(spkac);
143 #### `certificate.exportPublicKey(spkac)`
148 * `spkac` {string | Buffer | TypedArray | DataView}
149 * Returns: {Buffer} The public key component of the `spkac` data structure,
154 const spkac = getSpkacSomehow();
155 const publicKey = cert.exportPublicKey(spkac);
160 #### `certificate.verifySpkac(spkac)`
165 * `spkac` {Buffer | TypedArray | DataView}
166 * Returns: {boolean} `true` if the given `spkac` data structure is valid,
171 const spkac = getSpkacSomehow();
172 console.log(cert.verifySpkac(Buffer.from(spkac)));
3600 [OpenSSL's SPKAC implementation]: https://www.openssl.org/docs/man1.1.0/apps/openssl-spkac.html