• Home
  • Raw
  • Download

Lines Matching refs:spkac

90 ### Static method: `Certificate.exportChallenge(spkac[, encoding])`
97 description: The spkac argument can be an ArrayBuffer. Limited the size of
98 the spkac argument to a maximum of 2**31 - 1 bytes.
101 * `spkac` {string|ArrayBuffer|Buffer|TypedArray|DataView}
102 * `encoding` {string} The [encoding][] of the `spkac` string.
103 * Returns: {Buffer} The challenge component of the `spkac` data structure, which
108 const spkac = getSpkacSomehow();
109 const challenge = Certificate.exportChallenge(spkac);
116 const spkac = getSpkacSomehow();
117 const challenge = Certificate.exportChallenge(spkac);
122 ### Static method: `Certificate.exportPublicKey(spkac[, encoding])`
129 description: The spkac argument can be an ArrayBuffer. Limited the size of
130 the spkac argument to a maximum of 2**31 - 1 bytes.
133 * `spkac` {string|ArrayBuffer|Buffer|TypedArray|DataView}
134 * `encoding` {string} The [encoding][] of the `spkac` string.
135 * Returns: {Buffer} The public key component of the `spkac` data structure,
140 const spkac = getSpkacSomehow();
141 const publicKey = Certificate.exportPublicKey(spkac);
148 const spkac = getSpkacSomehow();
149 const publicKey = Certificate.exportPublicKey(spkac);
154 ### Static method: `Certificate.verifySpkac(spkac[, encoding])`
161 description: The spkac argument can be an ArrayBuffer. Added encoding.
162 Limited the size of the spkac argument to a maximum of
166 * `spkac` {string|ArrayBuffer|Buffer|TypedArray|DataView}
167 * `encoding` {string} The [encoding][] of the `spkac` string.
168 * Returns: {boolean} `true` if the given `spkac` data structure is valid,
175 const spkac = getSpkacSomehow();
176 console.log(Certificate.verifySpkac(Buffer.from(spkac)));
184 const spkac = getSpkacSomehow();
185 console.log(Certificate.verifySpkac(Buffer.from(spkac)));
215 #### `certificate.exportChallenge(spkac[, encoding])`
221 * `spkac` {string|ArrayBuffer|Buffer|TypedArray|DataView}
222 * `encoding` {string} The [encoding][] of the `spkac` string.
223 * Returns: {Buffer} The challenge component of the `spkac` data structure, which
229 const spkac = getSpkacSomehow();
230 const challenge = cert.exportChallenge(spkac);
238 const spkac = getSpkacSomehow();
239 const challenge = cert.exportChallenge(spkac);
244 #### `certificate.exportPublicKey(spkac[, encoding])`
250 * `spkac` {string|ArrayBuffer|Buffer|TypedArray|DataView}
251 * `encoding` {string} The [encoding][] of the `spkac` string.
252 * Returns: {Buffer} The public key component of the `spkac` data structure,
258 const spkac = getSpkacSomehow();
259 const publicKey = cert.exportPublicKey(spkac);
267 const spkac = getSpkacSomehow();
268 const publicKey = cert.exportPublicKey(spkac);
273 #### `certificate.verifySpkac(spkac[, encoding])`
279 * `spkac` {string|ArrayBuffer|Buffer|TypedArray|DataView}
280 * `encoding` {string} The [encoding][] of the `spkac` string.
281 * Returns: {boolean} `true` if the given `spkac` data structure is valid,
289 const spkac = getSpkacSomehow();
290 console.log(cert.verifySpkac(Buffer.from(spkac)));
299 const spkac = getSpkacSomehow();
300 console.log(cert.verifySpkac(Buffer.from(spkac)));
6107 [OpenSSL's SPKAC implementation]: https://www.openssl.org/docs/man3.0/man1/openssl-spkac.html