做个记录
http://www.ttlsa.com/web/multiple-https-host-nginx-with-a-ip-configuration/
做个记录
http://www.ttlsa.com/web/multiple-https-host-nginx-with-a-ip-configuration/
SSLCertificateFile “/etc/pki/tls/f028f24f6ee793e6.crt”
SSLCertificateKeyFile “/etc/pki/tls/private/ca.key”
SSLCertificateChainFile “/etc/pki/tls/sf_bundle-g2-g1.crt”
最近碰到一些QQ互联登录的问题,可能是php的curl在https 情况下出现 segment falt 造成,终极原因需要修复php curl ssl,
造成的原因可能是libsqlite
openssl genrsa -des3 -out server.key 2048
生成server.key
openssl rsa -in server.key -out server.key
去除server.key 里面密码
openssl req -new -key server.key -out server.csr
生成server.csr
提交server.csr 内容到godaddy,审核后下载zip文件
把里面的非gd_bundled的文件和server.key 合并为pem
cat bf5d584ffa226fa6.crt server.key > /etc/nginx/server.pem
cp server.key /etc/nginx/server.key
nginx的配置里面这样写
ssl on;
ssl_certificate /etc/nginx/server.pem;
ssl_certificate_key /etc/nginx/server.key;