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