如何在Nginx服务器上安装SSL证书?

发布时间:2021-09-12

  #server{ #listen443; #server_namelocalhost; #sslon; #ssl_certificatecert.pem; #ssl_certificate_keycert.key; #ssl_session_timeout5m; #ssl_protocolsSSLv2SSLv3TLSv1; #ssl_ciphersALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MED IUM:+LOW:+SSLv2:+EXP; #ssl_prefer_server_cipherson; #location/{ #roothtml; #indexindex.htmlindex.htm; #} #}server{ listen443; server_namelocalhost; sslon; ssl_certificateserver.cer; ssl_certificate_keyserver.key; ssl_session_timeout5m; ssl_protocolsTLSv1TLSv1.1TLSv1.2; ssl_ciphersECDH:AESGCM:HIGH:!RC4:!DH:!MD5:!aNULL:!eNULL; ssl_prefer_server_cipherson; location/{ roothtml; indexindex.htmlindex.htm; } } 保存退出,并重启Nginx。 通过https方式访问您的站点,测试站点证书的安装配置。

  

  注:server.cer 是服务器证书 中级证书的整合

  

注册即送1000元现金券