阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js crypto Certificate.exportPublicKey

      Node.js crypto Certificate.exportPublicKey 新增于: v9.0.0

      • spkac < string> | < Buffer> | < TypedArray> | < DataView>
      • encoding < string> The encoding of the spkac string.
      • Returns: < Buffer> The public key component of the spkac data structure, which includes a public key and a challenge.
      const { Certificate } = require('crypto');
      const spkac = getSpkacSomehow();
      const publicKey = Certificate.exportPublicKey(spkac);
      console.log(publicKey);
      // Prints: the public key as <Buffer ...>
      

      更多内容请参考:Node.js crypto 加密,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录