make cert:快速生成自签名证书以启动HTTPS服务器 源码

implement_40000 22 0 ZIP 2021-05-03 21:05:35

制作证书 快速生成自签名证书以启动HTTPS服务器 用法 通过运行以下命令安装 : yarn add make-cert 要使用PEM格式生成带有私钥的key.pem和带有证书的cert.pem ,请运行: yarn make-cert localhost 要在您自己JavaScript代码中使用此代码,请执行以下操作: import makeCert from 'make-cert' const { key , cert } = makeCert ( 'localhost' ) console . log ( key ) console . log ( cert )

用户评论
请输入评论内容
评分:
暂无评论