1. pfx 파일을 crt 및 rsa로 변환 - convert pfx file to crt and rsa.
$ openssl pkcs12 -in ssl.mysite.com.pfx -clcerts -nokeys -out ssl.mysite.com.crt |
2. crt rsa파일 복사 - copy crt and rsa file to NGINX_HOME/conf/ssl/
C:\Users\fehead> dir /w C:\nginx\conf\ssl C:\nginx\conf\ssl |
3. nginx config 파일 설정 - set nginx config file.
###################################################################################################################################################### # tomcat upstream tomcat { # ssl.mysite.com https setting # ssl.mysite.com SSL redirect # Etc Site } |
4. test nginx config
C:\nginx>nginx.exe -t |
5. restart nginx
C:\nginx>nginx.exe -s reload |