Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.
아래와 같이 letsencrypt를 사용해도 되고 sudo certbot를 사용해도됨. 그리고 인증서 갱신후 반드시 sudo service apache2 reload를 수행하여 변경사항을 반영시켜주어야함.
1. 인증서 발급하기
letsencrypt certonly --webroot --webroot-path=/home/gooper/www -d gooper.com -d www.gooper.com
letsencrypt certonly --webroot --webroot-path=/home/gdime/www -d gdime.com -d www.gdime.com
2. 인증서 갱신시 이전 버전인 ACMEv1를 사용하는 경우 오류메세지
gooper@gsda4:~/$ sudo certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/gooper.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Attempting to renew cert (gooper.com) from /etc/letsencrypt/renewal/gooper.com.conf produced an unexpected error: urn:acme:error:serverInternal :: The server experienced an internal error :: ACMEv1 is deprecated and you can no longer get certificates from this endpoint. Please use the ACMEv2 endpoint, you may need to update your ACME client software to do so. Visit https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430/27 for more information.. Skipping.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/gdime.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Attempting to renew cert (gdime.com) from /etc/letsencrypt/renewal/gdime.com.conf produced an unexpected error: urn:acme:error:serverInternal :: The server experienced an internal error :: ACMEv1 is deprecated and you can no longer get certificates from this endpoint. Please use the ACMEv2 endpoint, you may need to update your ACME client software to do so. Visit https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430/27 for more information.. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/gooper.com/fullchain.pem (failure)
/etc/letsencrypt/live/gdime.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/gooper.com/fullchain.pem (failure)
/etc/letsencrypt/live/gdime.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2 renew failure(s), 0 parse failure(s)
*버전에 따른 오류가 발생하면 아래 파일의 server = https://acme-v01.api.letsencrypt.org/directory부분을 server = https://acme-v02.api.letsencrypt.org/directory로 바꿔준다.
(이전 버전의 renewal정보가 설정된 모습
renewal/gooper.com.conf :server = https://acme-v01.api.letsencrypt.org/directory
renewal/gdime.com.conf :server = https://acme-v01.api.letsencrypt.org/directory
)
3. 1개도메인만 버전 정보를 수정후 다시 renew를 수행한 메세지는 아래와 같음(1개는 정상 1개는 실패)
gooper@gsda4:/etc/letsencrypt$ sudo certbot renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/gooper.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for gooper.com
http-01 challenge for www.gooper.com
Waiting for verification...
Cleaning up challenges
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new certificate deployed without reload, fullchain is
/etc/letsencrypt/live/gooper.com/fullchain.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/gdime.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Attempting to renew cert (gdime.com) from /etc/letsencrypt/renewal/gdime.com.conf produced an unexpected error: urn:acme:error:serverInternal :: The server experienced an internal error :: ACMEv1 is deprecated and you can no longer get certificates from this endpoint. Please use the ACMEv2 endpoint, you may need to update your ACME client software to do so. Visit https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430/27 for more information.. Skipping.
The following certs could not be renewed:
/etc/letsencrypt/live/gdime.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The following certs were successfully renewed:
/etc/letsencrypt/live/gooper.com/fullchain.pem (success)
The following certs could not be renewed:
/etc/letsencrypt/live/gdime.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
15 | How to Install Magento 2.4.7 on Ubuntu 24.04 | 2024.09.04 | 873 |
» | https용 인증서 발급 명령문 예시및 오류 메세지 | 2018.01.24 | 307 |
13 | 여러 홈페이지를 운영하거나 혹은 서버에 가입한 사용자들에게 홈페이지 계정을 나누어 줄수 있도록 설정/계정 생성방법 | 2018.01.23 | 902 |
12 | [u-Auctions]목록이 1개만 나오는 문제 | 2017.05.29 | 230 |
11 | Ubuntu 16.04LTS 설치후 초기에 주어야 하는 작업(php, apache, mariadb설치및 OS보안설정등) | 2017.05.23 | 5796 |
10 | Ubuntu 16.04 LTS에서 사이트에 무료인증서를 이용하여 SSL적용 | 2017.05.23 | 562 |
9 | webid에서 google처럼 검색할 수 있도록 하는 프로그램 | 2017.05.16 | 244 |
8 | php auction 프로그램 | 2017.05.14 | 366 |
7 | [PHP7.0]로그파일 위치 | 2017.05.07 | 332 |
6 | magento2 2.1.3을 수동으로 설치하는 방법 | 2017.02.01 | 330 |
5 | magento2 log파일 위치 | 2017.01.31 | 280 |
4 | magento2 샘플데이타 설치 | 2017.01.31 | 189 |
3 | magento2 설치후 초기화면이 깨지는 문제 | 2017.01.31 | 182 |
2 | [Magento]php7에 Composer를 이용하여 Magento 2.1.3 설치 | 2017.01.30 | 1193 |
1 | 우분투 16.04 설치후 APM (Apache2, PHP, MySQL) 설치 | 2017.01.29 | 732 |