随笔分类 - nginx
摘要:创建rootCA证书 cd ~ && mkdir mycert cd mycert openssl genrsa -des3 -out rootCA.key 2048 openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -
阅读全文
摘要:#!/bin/bash # filename checkSSLCertificate.sh # 使用方法 checkSSLCertificate.sh domain server_ip echo | openssl s_client -showcerts -servername $1 -connec
阅读全文
摘要:后端有多个https服务,不同域名请求要把流量打到同的后端服务。 前提条件:每个服务的https证书需要包含域名信息。 #!/bin/bash docker run -d --name nginx \ -v $(pwd)/nginx.conf:/etc/nginx/nginx.conf \ -p 4
阅读全文