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)));
// Prints: 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