Recently in the study nginx, the whole good encounter a demand is that the server and the client transfer between the content is encrypted, to prevent the middle of the leakage of information, but to the certificate service provider that the certificate is not cost-effective, because the access to the server are insiders, so they issued their own certificates, Ignore the browser's untrusted alerts. The following is the issuance certificate and configuration process.
1, first ensure that the machine is installed with OpenSSL and Openssl-devel
# yum Install openssl# yum install OpenSSL-devel
2. Generate certificate
/etc/nginx/-des3-out1024x768-new -key server.key-out- in server.key.org- out Server.key
The last token certificate uses the above private key and csr:# OpenSSL x509-req-days 365-in server.csr-signkey server.key-out server.crt
3. Configure Nginxto include the newly marked certificate and private key
server { server_name your_domainname_here; 443 ; SSL on; server.crt; Server.key;}
4, restart the nginx can be.
Nginx Configuration HTTPS