본문 바로가기
  • [성공하는 개발자] - Developer
Server/Linux

CentOS Nginx 에 Certbot을 통한 무료 SSL인증서 적용 및 HTTP/2 적용

by Sein-JH 2021. 6. 30.
728x90

https://hoing.io/archives/11906

 

CentOS Nginx 에 Certbot을 통한 무료 SSL인증서 적용 및 HTTP/2 적용

먼저 해당 글은 CentOS 환경에서 Nginx+PHP-FPM+MySQL 구성의 연재 포스팅으로 아래에 글에서 이어지는 글 입니다.[관련된 이전 글]1. CentOS Nginx PHP Mysql 설치 및 연동 구성 - LEMP[Link]2. CentOS Nginx TLS1.3 OpenSSL

hoing.io

위 자료에서 확인할수 있지만 추가적으로 정리해드리겠습니다.

 

https://skout90.github.io/2018/09/01/Web/https-nginx-setup/

 

Lets Encrypt활용 nginx에서 5분만에 https 설정하기

nginx와 certbot을 이용하면 https 적용이 너무 쉽다…… 괘난 삽질을 많이 한듯. 환경 ubuntu 16.0.4 nginx 설치 sudo apt install nginx sudo service nginx start nginx 경로로 이동 cd /etc/nginx/conf.d sudo vi servers.conf 서버

skout90.github.io

https://gist.github.com/chrisjm/32a782317e377d52cc95fda8777e8dfe

 

LetsEncrypt, AWS Certificate Manager, and CloudFront

LetsEncrypt, AWS Certificate Manager, and CloudFront - README.md

gist.github.com

[Ubuntu] CERTBOT 설치.

 

만약 apt 같은 OS 패키지 관리자를 사용하여 설치된 Certbot 패키지가 있는 경우 기존 Certbot은 제거해야 합니다. 다음 명령어로 Certbot을 제거해 주세요.

sudo apt-get remove certbot

 

이제 snap을 사용해 최신 Certbot을 설치해 줍니다. 다음 명령어로 snap을 사용해 Certbot을 설치합니다.

sudo snap install --classic certbot

 

설치가 완료되면 다음 명령어를 실행해 certbot 명령을 실행할 수 있는지 확인합니다.

sudo ln -s /snap/bin/certbot /usr/bin/certbot

댓글