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 或 false
spkac
<Buffer> | <TypedArray> | <DataView>- Returns: <boolean>
true
if the givenspkac
data structure is valid,false
otherwise.
const cert = require('crypto').Certificate();
const spkac = getSpkacSomehow();
console.log(cert.verifySpkac(Buffer.from(spkac)));
// Prints: true or false