How do I transfer an SSL certificate from an Apache server to an NGINX server?
Any help is much appreciated.
migrated from stackoverflow.com Sep 1 '12 at 14:26
This question came from our site for professional and enthusiast programmers.
You need to Copy the following files:
1).crt 2).key from the APACHE SSL Configuration path To the NGINX Server Configuration Path.
Now open your Nginx virtual host file for the website you are securing. If you need your site to be accessible through both secure (https) and non-secure (http) connections, you will need a server module for each type of connection. Make a copy of the existing non-secure server module and paste it below the original. Then add the lines in bold below:
Adjust the file names to match your certificate files:
Now Restart Nginx.
Run the following command to restart Nginx: