网站http网站域名换https精粹二:liunx Centos7.3使h

2021-03-07 01:34 jianzhan
1_root_bundle.crt【复制到/etc/ssl/certs文件目录】【CA资格证书】
2_YOUR_DOMAIN.crt 【复制到/etc/ssl/certs文件目录】【CA签发的公正书】
3_YOUR_DOMAIN.key【复制到/etc/ssl/private文件目录】【私钥】

# ls autoindex.conf php.conf README ssl.conf userdir.e.conf
改动DocumentRoot ,DocumentRoot "/"【网站的文件目录】改动ServerName, ServerName YOUR_DOMAIN:443【网站域名+443端口号】注解掉SSLProtocol all -SSLv2, #SSLProtocol all -SSLv2注解掉SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!SEED:!IDEA,#SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!SEED:!IDEA配备SSLCertificateFile 的相对路径,SSLCertificateFile /etc/ssl/certs/2_YOUR_DOMAIN.crt 配备SSLCertificateKeyFile , SSLCertificateKeyFile /etc/ssl/private/3_YOUR_DOMAIN.key 配备 SSLCertificateChainFile , SSLCertificateChainFile /etc/ssl/certs/1_root_bundle.crt【资格证书信赖链,若配不上置此相对路径,会出現ios能够一切正常浏览,而android没法开启网页页面的状况】