Skip to content

Nginx SSL ์„ค์ •

๋ฐ•์ง€์œจ edited this page Oct 16, 2021 · 1 revision
์ž‘์„ฑ์ž ์ž‘์„ฑ์ผ์‹œ
earthkingman 2021-10-17

HTTPS ์‚ฌ์šฉ์ด์œ 

HTTPS๋Š” ์›น์‚ฌ์ดํŠธ์˜ ๋ฌด๊ฒฐ์„ฑ์„ ๋ณดํ˜ธํ•ด์ค€๋‹ค.

LetsEncrypt SSL

Letโ€™s Encrypt๋„ ์•Œ๊ณ  ๋ณด๋ฉด ์ˆ˜๋งŽ์€ ์ธ์ฆ์„œ ๋ฐœ๊ธ‰ ๊ธฐ๊ด€, CA(Certificate Authority) ์—…์ฒด ์ค‘ ํ•˜๋‚˜

  • ์ธ์ฆ ์ ˆ์ฐจ๊ฐ€ ๋‹จ์ˆœ(์„œ๋ฒ„์—์„œ ํ•„์š”ํ•œ ํ”„๋กœ๊ทธ์•ฐ๋“ค์ด ์„ค์น˜๋˜์–ด ์žˆ๋‹ค๋ฉด) ๋‹จ ํ•œ์ค„ ๋ช…๋ น์–ด๋กœ ๋ฐœ๊ธ‰
  • ๋ฐœ๊ธ‰ ๋Œ€๊ธฐ ์‹œ๊ฐ„ ์—†์ด ๋ฐ”๋กœ ๋ฐœ๊ธ‰(์ด๋ฉ”์ผ ์ž…๋ ฅ ๋“ฑ์„ ํฌํ•จํ•ด 1๋ถ„ ์ด๋‚ด)
  • Nginx๋‚˜ ์•„ํŒŒ์น˜์™€ ๊ฐ™์€ ์›น์„œ๋ฒ„์— ๋งž์ถ”์–ด ์ž๋™ ์˜ต์…˜ ์„ค์ •๋˜๋„๋ก ์„ค์น˜ ๊ฐ€๋Šฅ
  • ์ธ์ฆ ์œ ํšจ๊ธฐ๊ฐ„์€ 90์ผ์ด์ง€๋งŒ ์ธ์ฆ์„ ์ž๋™ํ™” ๊ฐ€๋Šฅ
  • ๋ฌด์—‡๋ณด๋‹ค๋„ ๋ฌด๋ฃŒ

ํ•„์š”์‚ฌํ•ญ

  • ๊ณต๊ฐœ๋œ ๋„๋ฉ”์ธ
sudo yum -y install yum-utils
sudo yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install certbot python2-certbot-nginx

sudo certbot --nginx

์ฐธ๊ณ  https://okdevtv.com/mib/letsencrypt

Clone this wiki locally