Let 's Encrypt 인증서(웹 사이트에서 자동으로 HTTPS를 사용)

설치 : 

    https://certbot.eff.org/lets-encrypt/ubuntuxenial-nginx

    http://riseshia.github.io/2016/10/16/certbot-let-s-encrypt.html

    https://elfinlas.github.io/2018/03/19/certbot-ssl/

 

     - nginx 강제 죽이기

        sudo netstat -tulpn

        sudo kill -2 [PID]

 

    ---------------------------------------

    방법1 (nginx 중지후 진행)

    ---------------------------------------

    service nginx stop

 

    방법1) nginx 서버에서 도메인 선택 인증서 발급 : sudo certbot --nginx certonly

    방법2) sudo certbot certonly -standalone -d 도메인

 

    service nginx start

 

    ---------------------------------------

    방법2 (nginx 실행중에 진행)

    ---------------------------------------

    도메인별 인증서 발급 : sudo certbot certonly -webroot -w 웹루트 -d 도메인 -d 도메인 ( 으로 도메인복수 작성 가능합니다.)

 

 

발급받은 인증서 확인 : sudo certbot certificates