리눅스

Total 331
Today 0
profile_image
슈퍼아이피
18-10-09 16:54 0개 21회
설치문서
Let's Encrypt SSL/TLS 인증서 적용하기-Centos6.x

사전 준비 사항

git 1.8 과 python 2.7 이상 설치

RedHat Enterprise Linux(RHEL)와 CentOS 6, Amazon Linux 1 은 python 2.6 이 설치되어 있고 시스템의 핵심 구성요소라 변경이 어려우니 ISU 저장소 설치 필요

  1. 저장소 다운로드 및 설치

  2. 의존 패키지 설치

    yum install  git python27 python27-devel python27-pip python27-setuptools python27-virtualenv python27-libs

SSL 발급 & 웹 서버 적용

  1. 저장소 복제

    cd letsencrypt
  2. 인증서 발급

    ./letsencrypt-auto certonly --webroot --email your@email --agree-tos \
    -w /your/web/root/directory1 -d your.domain1 \
    -w /your/web/root/directory2 -d your.domain2 \
    -w /your/web/root/directory3 -d your.domain3
    1. 기본 옵션
      1. (default) run  Obtain & install a certificate in your current webserver

      2. certonly         Obtain or renew a certificate, but do not install it

      3. renew             Renew all previously obtained certificates that are near

    2. --webroot         Place files in a server's webroot folder for authentication

    3.  --agree-tos       Agree to the ACME server's Subscriber Agreement
    4. --dry-run           Test "renew" or "certonly" without saving any certificates to disk

nginx 플러그인 사용해서 갱신

./letsencrypt-auto --nginx renew
./letsencrypt-auto --apache renew



cron 연동

3개월 만료이므로 자동으로 갱신하도록 cron 에 등록

댓글목록

등록된 댓글이 없습니다.