spkac{string | Buffer | TypedArray | DataView}- 返回 {Buffer} 返回
spkac数据结构的 challenge 部分,spkac包含一个公钥和一个 challenge。
const { Certificate } = require('crypto');const spkac = getSpkacSomehow();const challenge = Certificate.exportChallenge(spkac);console.log(challenge.toString('utf8'));// 以 UTF 字符串的形式打印 challenge。
