Express本地测试HTTPS的示例代码

上传:z92469 浏览: 15 推荐: 0 文件:PDF 大小:34.03KB 上传时间:2021-01-16 17:18:17 版权申诉
我的环境 亚马逊(AWS)的一个ubuntu虚拟机. node openssl 生成证书 输入如下命令会在你的当前文件夹生成localhost.key和localhost.cert. openssl genrsa -out localhost.key 2048 openssl req -new -x509 -key localhost.key -out localhost.cert -days 3650 -subj /CN=localhost 其中localhost为域名. 想要换成别的域名就直接把上面的所有localhost替换成你的域名. 以我为例, 我的虚拟机的域名是xx
上传资源
用户评论