프로그램설치

nginx + ssl + tomcat (4)

예쁜꽃이피었으면 2020. 2. 13. 17:59

AWS(ubuntu) / nginx / apache tomcat / sts (mybatis) / docker / mysql / vue.js

 

[SSL 설정]

1. aws 접속 후

# sudo apt-get update #apt-get 업데이트
# sudo apt-get install software-properties-common #선행 소프트웨어 설치
# sudo add-apt-repository ppa:certbot/certbot #저장소 추가
# sudo apt-get update #apt-get 업데이트

 

블로그 보고 따라해서 잘 기억이 나지 않음..

# sudo certbot certonly --webroot -w /var/www/html -d <서버IP주소> <email>

 

설치가 끝나면 

# sudo certbot certificates

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
  Certificate Name: 도메인
    Domains: 도메인 
    Expiry Date: 2020-05-12 01:48:33+00:00 (VALID: 89 days)
    Certificate Path: /etc/letsencrypt/live/도메인/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/도메인/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 

완료하면 

# /etc/letsencrypt/live 여기가보면 설정되어 있음

 

더보기
반응형

'프로그램설치' 카테고리의 다른 글

aws , mysql , docker , Django , vuejs 배포 전 공부  (0) 2020.04.22
nginx + ssl + tomcat (5)  (0) 2020.02.14
nginx + ssl + tomcat (3)  (0) 2020.02.13
nginx + ssl + tomcat (2)  (0) 2020.02.13
nginx + ssl + tomcat (1)  (0) 2020.02.13