# Certbot 설치
sudo apt update
sudo apt install certbot python3-certbot-nginx -y

# SSL 인증서 발급 및 Nginx 자동 설정
sudo certbot --nginx -d {도메인} -d {도메인}

# 자동 갱신 설정 확인
sudo certbot renew --dry-run

이메일로 소식 받아볼 건지 c → 스킵, 또는 이메일 입력

No VM guests are running outdated hypervisor (qemu) binaries on this host.
ubuntu@exdict-frontend:~/excuse-dict-frontend$ sudo certbot --nginx -d exdict.site -d exdict.site
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and security notices)
 (Enter 'c' to cancel): [email protected]

이용약관 동의 → y 입력

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
<https://letsencrypt.org/documents/LE-SA-v1.5-February-24-2025.pdf>. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: y

뉴스레터 받아볼 건지 → n 입력

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o:

Mixed Content 오류

image.png

프론트엔드만 HTTPS고 백엔드는 HTTP라 발생

백엔드도 적용 해줘야함

가비아에 등록한 api.{도메인} 서브도메인 사용하여 발급

프론트 api url도 HTTPS, api 서브도메인으로 변경

NEXT_PUBLIC_API_URL=https://api.{도메인}

SSL 프로토콜 에러