ํŠธ๋Ÿฌ๋ธ” ์ŠˆํŒ…

[nginx] let’s encrypt ๊ถŒํ•œ ๋ฌธ์ œ ํ•ด๊ฒฐ

DAHLIA CHOI 2024. 2. 2. 13:50

 

nginx๋ฅผ ๋‹ค์‹œ ์‹œ์ž‘ํ•˜๋ ค๊ณ  ํ•˜๋Š”๋ฐ ์ž๊พธ cert.pem์— ๊ถŒํ•œ์ด ์—†๋‹ค๋Š” ์˜ค๋ฅ˜๊ฐ€ ๋–ด๋‹ค..

 

 

 

โœ๏ธ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•

 

certbot certonly --manual -d ${domain}

cd /var/log/
sudo chmod -R 775 letsencrypt/
sudo chgrp -R ec2-user letsencrypt/


cd /var/lib
sudo chmod -R 775 letsencrypt/
sudo chgrp -R ec2-user letsencrypt/


cd /etc
sudo chmod -R 775 letsencrypt/
sudo chgrp -R ec2-user letsencrypt/

 

์ด๋ ‡๊ฒŒ letsencrypt์— ec2-user ๊ถŒํ•œ์„ ์คฌ๋”๋‹ˆ ์˜ค๋ฅ˜๊ฐ€ ํ•ด๊ฒฐ๋˜์—ˆ๋‹ค!