기본 콘텐츠로 건너뛰기

cerbot 사용하기


  • https://certbot.eff.org 에 접속
  • instructions를 살펴보면(https://certbot.eff.org/instructions),  
    • command line 에 익숙하고
    • 80 port가 open된 HTTP server가 필요하고,
    • sudo 사용이 가능한 ssh 접속을 할 수 있어야 하고,
    • wildcard cert를 필요로 한다면 DNS credentials도 있어야 한다.
  • 설치
    • macOS
      • brew install letsencrypt
  • webroot 방식 : web server를 직접 운영하는 경우 사용
    • 설정
      • macOS
        • 80(HTTP)/443(HTTPS) port 는 root 에게만 권한이 있으므로,
        • launchd plist 파일을 /Library/LaunchDaemons/"your.plist"에 작성하고
        • chown root "your.plist"로 사용자를 root로 변경
    • 실행
      • sudo certbot certonly --webroot
  • standalone 방식 : 
    • 실행
      • sudo certbot certonly --standalone -d "domain"
      • 실행하면 다음 위치에 인증서와 개인키가 설치된다.
        • /etc/letsencrypt/live/"domain"/privkey.pem
        • /etc/letsencrypt/live/"domain"/fullchain.pem

댓글

이 블로그의 인기 게시물