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