Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the method of deploying nginx SSL certificate under CentOS 6.7?

Shulou Source: shulou.com Published: 2022-06-01 02:51:08 11月14日 Update

CentOS 6.7 nginx SSL certificate deployment method is what, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

The method of deploying nginx SSL Certificate under CentOS 6.7

Environment

System environment: CentOS6.7

Nginx version: nginx/1.8.1

Certificat

Ls / opt/nginx/conf/sslqingkang.me.crt # Public key qingkang.me.key # Private key

Configuration

Vim nginx.conf

Find the following

HTTPS server##server {# listen 443 ssl;# server_name localhost;# ssl_certificate cert.pem;# ssl_certificate_key cert.key;# ssl_session_cache shared:SSL:1m;# ssl_session_timeout 5m / # ssl_ciphers Higg / ssl_prefer_server_ciphers on;# location / {# root html;# index index.html index.htm;#} #}

Modified to:

Server {listen 443 ssl; server_name qingkang.me; ssl_certificate ssl/qingkang.me.crt; ssl_certificate_key ssl/qingkang.me.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers http://www.iis7.com/b/ssyqdq/ Higg / ssl_prefer_server_ciphers on; location / {root html; index index.html index.htm;}}

Check configuration

/ opt/nginx/sbin/nginx-t

Restart Nginx takes effect

/ opt/nginx/sbin/nginx-s reload

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Certificate method content environment help configuration clarity public key for this article novice more knowledge systems industry information information channel problem demand channel Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Apple OPPO Reno Microsoft Shulou Tech Info