nginx 설정 https 방법

926 단어 Nginx
1. 우선 기계 에 openssl 이 설치 되 어 있 는 지 확인 합 니 다.
2. 생산 증서
#cd /usr/local/nginx/conf
#openssl genrsa -des3 -out server.key 1024
#openssl req -new -key server.key -out server.csr
#openssl rsa -in server.key -out server_nopwd.key
#openssl x509 -req -days 365 -in server.csr -signkey server_nopwd.key -out server.crt
#openssl x509 -req -days 365 -in server.csr -signkey server_nopwd.key -out server.crt

이 인증서 가 생 성 되 었 습 니 다. 다음은 nginx 설정 입 니 다.
3. nginx 파일 설정
nginx 를 다시 시작 하면 됩 니 다.
4. 브 라 우 저 인증서 가 져 오기
제어 판 - > 인터넷 옵션 - > 내용 - > 발행 자 -> 신뢰 하 는 루트 인증서 발급 기관 - > 가 져 오기 - > server. crt 선택

좋은 웹페이지 즐겨찾기