nginx + ssl + tomcat (4)
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 여기가보면 설정되어 있음
https://elfinlas.github.io/2018/03/19/certbot-ssl/
Certbot으로 무료 인증서 발급 받기
무료 인증서를 받기 위해서…사내정보시스템을 1차 오픈을 위해서 aws 준비, 도메인 설정 등등 이것저것 할일이 많았습니다.그 중 HTTPS 적용을 위해서 인증서를 알아보고 있었습니다.개발중에는 인증서를 직접 만들어 사용하였지만, 정식오픈을 할 경우 공식적인 인증을 받은 인증서를 사용해야 했습니다.그래서 이것저것 찾아보던 중 Certbot을 알게 되었습니다.
elfinlas.github.io
https://freestrokes.tistory.com/44
Ubuntu iptables로 방화벽 port 설정하기
Ubuntu iptables 방화벽 port 설정하기 Ubuntu에서 iptables를 사용하여 방화벽 port를 설정하는 방법입니다. Ubuntu는 ufw를 사용하여 기본 방화벽을 설정해줄 수 있는데 수준 높은 방화벽 구성을 위해서는 iptab..
freestrokes.tistory.com