os:ubuntu:letsencrypt
문서의 이전 판입니다!
letsencrypt
letsencrypt 설치
- letsencrypt 설치
# apt-get update ; apt-get dselect-upgrade -f fix-missing upgrade # apt-cache search letsencrypt # apt-get install letsencrypt # apt-cache show letsencrypt
- ubuntu 는 certbot 를 이용한다.
certbot PPA
- APT Repository 에 certbot PPA 추가한다. (선택옵션)
# add-apt-repository ppa:certbot/certbot
- APT Repository 에서 certbot PPA 삭제방법
# add-apt-repository --remove ppa:certbot/certbot
- 관련 패키지들까지 한꺼번에 제거하고 싶을때
- ppa-purge 패키지 설치
# apt-get install ppa-purge
- 관련 패키지 삭제
# ppa-purge ppa:certbot/certbot
letsencrypt 인증서 발급
- letsencrypt 인증서 생성은 http(port 80)를 통해서 이루어진다.
http로 접근시 https로 redirection 되어 있다면 설정을 해제하고 시작한다. - 인증서 생성 ( letsencrypt 명령어 대신 certbot 명령어를 사용해도 된다 )
# letsencrypt certonly --webroot -w /home/admin/tomcat8_ecp/webapps/ROOT/WEB-INF/jsp/ -d ecp.adminschool.net
- [webroot] 웹인증 방식 선택
- [w 경로] 에 임시로 파일을 생성하고 letsencrypt 사이트 인증프로그램이 이 파일을 접근할 수 있으면
- [d 도메인] 인증을 한다
os/ubuntu/letsencrypt.1591432087.txt.gz · 마지막으로 수정됨: 저자 starlits
