nginx配置https - SSL
方式一、阿里云签名证书# 下载5117391_www.kxy.cn_nginx.zip 包并上传到服务器/usr/local/nginx/cert目录下scp -r 5492579_www.kxy.cn_nginx.zip root@47.105.91.104:/usr/local/nginx/ce
行走在天地间自由的灵魂
方式一、阿里云签名证书# 下载5117391_www.kxy.cn_nginx.zip 包并上传到服务器/usr/local/nginx/cert目录下scp -r 5492579_www.kxy.cn_nginx.zip root@47.105.91.104:/usr/local/nginx/ce
打印证书的过期时间openssl x509 -in signed.crt -noout -dates打印出证书的内容:openssl x509 -in cert.pem -noout -text打印出证书的系列号openssl x509 -in cert.pem -noout -serial打印出证
参考链接1.1:生成服务端私钥和公钥:# 生成私钥openssl genrsa -out server.key 2048# 生成公钥openssl rsa -in server.key -pubout -out server.pem1.2:生成CA证书(自签名用)# 生成私钥openssl genr
参考链接参考链接在线htpasswd生成器指令详解# htpasswd工具安装yum -y install httpd# htpasswd指令参数详解-c: 创建一个加密文件。 如果已经存在,会重新写入并删去原有内容;-n:不更新加密文件,只将加密后的用户名密码显示在屏幕上;-m:默认采用MD5算法