2016-10-27 5 views
0

내 도메인 이름에 대해 certbot-auto 인증서 https를 사용하고 있습니다. 내가 좋아하는 명령을 사용하여이갱신 만료가 아닌 Certified 갱신 실행을위한 인증 갱신

sudo ./certbot-auto 

괜찮아,하지만 난 인증서 사용 명령

sudo ./certbot-auto renew --dry-run 

을 갱신 할 때 아래와 같은 인증서 및 표시 오류 메시지를 갱신 할 수 없습니다

/root/.local/share/letsencrypt/lib/python2.6/site-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6 
    DeprecationWarning 
Saving debug log to /var/log/letsencrypt/letsencrypt.log 

------------------------------------------------------------------------------- 
Processing /etc/letsencrypt/renewal/example.asia.conf 
------------------------------------------------------------------------------- 
Cert not due for renewal, but simulating renewal for dry run 
Starting new HTTPS connection (1): acme-staging.api.letsencrypt.org 
Renewing an existing certificate 
Performing the following challenges: 
tls-sni-01 challenge for example.asia 
tls-sni-01 challenge for www.example.asia 
Waiting for verification... 
Cleaning up challenges 
Generating key (2048 bits): /etc/letsencrypt/keys/0020_key-certbot.pem 
Creating CSR: /etc/letsencrypt/csr/0020_csr-certbot.pem 
** DRY RUN: simulating 'certbot renew' close to cert expiry 
**   (The test certificates below have not been saved.) 

Congratulations, all renewals succeeded. The following certs have been renewed: 
    /etc/letsencrypt/live/example.asia/fullchain.pem (success) 
** DRY RUN: simulating 'certbot renew' close to cert expiry 
**   (The test certificates above have not been saved.) 

를하시기 바랍니다 도와주세요

+0

정확히 무엇이 오류입니까? '--dry-run'은 갱신을 시뮬레이션하는 것입니다 (실제로 인증서를 갱신하지는 않습니다). 어제 (수요일, 2016 년 10 월 26 일 2시 49 분 0 초, 수요일) 인증서를 갱신 한 것으로 보이며 3 개월 동안 만료되지 않습니다. 인증서를 갱신하려면'--dry-run' 옵션을 사용하지 마십시오. –

+0

우리는 갱신을 위해 어떤 명령을 사용합니까? 제발 말해주세요 –

+0

@ 앤드류 hat, 죄송합니다, 만료되기 3 개월 전에 인증서를 갱신 할 수 있습니까? 만료 후 3 개월이 명령을 사용할 수 있습니다. sudo ./certbot-auto renew - 갱신을 위해 quiet? 괜찮 니? –

답변

2

질문에서 실행 한 명령 sudo ./certbot-auto renew --dry-run은 테스트 갱신에 사용됩니다. 로그에서 알 수 있듯이 모든 것이 잘되고 테스트가 성공적이었습니다.

인증서를 갱신하려면 sudo ./certbot-auto renew --quiet을 실행하십시오. 인증서가 30 일 이내에 만료되거나 이미 만료 된 경우 인증서를 갱신 할 수 있습니다.

자세한 내용은 Certbot documentationCertbot userguide에서 찾을 수 있습니다.

+0

정말 고마워요! ./certbot-auto 갱신 - 나를 위해 일하지 않는 조용한. sudo를 사용합니다 ./certbot-auto renew --force-renew는 괜찮습니다. 하지만 crontab -e * 15 * */certbot-auto를 사용하면 다음과 같은 오류가 발생합니다 : RedHat 기반 OS의 부트 스트랩 의존성 ... yum은/usr/bin/yum입니다 사용하려면 Certbot, EPEL 저장소의 패키지를 설치해야합니다. 이 저장소를 활성화하고 Certbot을 다시 실행하십시오. 만약 알고 솔루션 나를 도와주세요 –