Certificate.verifySpkac(spkac)
spkac<Buffer> | <TypedArray> | <DataView>- 返回: <boolean> 如果给定的
spkac数据结构有效,则为true,否则为false。
const { Certificate } = require('crypto');
const spkac = getSpkacSomehow();
console.log(Certificate.verifySpkac(Buffer.from(spkac)));
// 打印: true 或 falsespkac<Buffer> | <TypedArray> | <DataView>- Returns: <boolean>
trueif the givenspkacdata structure is valid,falseotherwise.
const { Certificate } = require('crypto');
const spkac = getSpkacSomehow();
console.log(Certificate.verifySpkac(Buffer.from(spkac)));
// Prints: true or false