도커 환경에서 SSL 인증서 발급받기
SSL 인증을 받기 위해 필요한 3가지
- 도메인 구매
- 인증서 만들기
- nginx 및 docker-compose 설정
1. 도메인 구매
도메인 판매 업체에서 구매
보통 1년에 1~3만원
2. 인증서 발급
무료 발급은 Let's Encrypt를 이용
유효기간이 90일이기 때문에 기간이 지날때마다 재발급이 필요
Certbot
- Let's Encrypt에서 SSL 인증서를 발급받는 자동화 툴
- 오픈소스이며 도커에 공식 이미지가 올라와 있어 편리하게 사용 가능
nginx-certbot
- 쉘 스크립트를 이용해 인증서를 가져와 자동으로 갱신할 수 있도록 도와주는 프로젝트
https://github.com/wmnnd/nginx-certbot
GitHub - wmnnd/nginx-certbot: Boilerplate configuration for nginx and certbot with docker-compose
Boilerplate configuration for nginx and certbot with docker-compose - wmnnd/nginx-certbot
github.com
Reference
도커 환경에서 SSL 인증서 발급받기 - (부제: HTTPS 설정하는 법)
SSL/TLS? HTTPS란? SSL/TLS SSL(Secure Sockets Layer) TLS(Transport Layer Security) - SSL의 후계자이다. SSL/TLS는 브라우저와 서버가 통신할 때 암호화를 지원하는 보안 프로토콜이다. SSL 인증서 (일컬어 TLS 또는 SSL /TL
myvelop.tistory.com
Nginx and Let’s Encrypt with Docker in Less Than 5 Minutes
Getting Nginx to run with Let’s Encrypt in a docker-compose environment is more tricky than you’d think …
pentacent.medium.com