2017-11-09 8 views
0

많은 시행 착오 끝에 마침내 내 사이트에서 HTTPS를 가져 왔습니다. 나는 다음과 같은 메시지Let 's Encrypt의 인증서가 갱신되지 않습니다.

1 renew failure(s), 0 parse failure(s) 

IMPORTANT NOTES: 
- The following errors were reported by the server: 

    Domain: www.din-pt.no 
    Type: unauthorized 
    Detail: Invalid response from 
    http://www.din-pt.no/.well-known/acme-challenge/pW5ACTpIbvnkdSpT-lBkRhfGR8steo_R5Zk-yMwQjOU: 
    "<html> 
    <head><title>404 Not Found</title></head> 
    <body bgcolor="white"> 
    <center><h1>404 Not Found</h1></center> 
    <hr><center>" 

    To fix these errors, please make sure that your domain name was 
    entered correctly and the DNS A/AAAA record(s) for that domain 
    contain(s) the right IP address. 

내가 생성을

sudo certbot certonly --webroot --agree-tos --no-eff-email --email [email protected] -w /var/www/ptpatrick.no/html/ -d www.din-pt.no -d din-pt.no 

그리고 HTTPS를 사용하여 인증서를 취득하면 현장에서 작업

sudo certbot renew --dry-run 

을 실행할 때하지만하자의 암호화 인증서가 갱신되지 않습니다.

하자 암호화

renew_before_expiry = 30 days 
version = 0.19.0 
archive_dir = /etc/letsencrypt/archive/www.din-pt.no 
cert = /etc/letsencrypt/live/www.din-pt.no/cert.pem 
privkey = /etc/letsencrypt/live/www.din-pt.no/privkey.pem 
chain = /etc/letsencrypt/live/www.din-pt.no/chain.pem 
fullchain = /etc/letsencrypt/live/www.din-pt.no/fullchain.pem 

# Options used in the renewal process 
[renewalparams] 
authenticator = webroot 
installer = None 
account = c0e77a8463a95263b6940fb41543b596 
webroot_path = /var/www/ptpatrick.no/html, 
[[webroot_map]] 
www.din-pt.no = /var/www/ptpatrick.no/html 
din-pt.no = /var/www/ptpatrick.no/html 

당신이 원한다면 추가 로그/설정을 게시 할 수 있습니다,하지만 난 너희들이 원하는 것을 확실하지 않다에 대한 나의 갱신 설정. Nginx에

와 우분투 16.04를 실행

모든 답장 주셔서 감사합니다! 사이트

+0

404 응답은 HTTPS가 아닌 HTTP에 의해 생성됩니다. HTTP를 통해'/. well-known'에 대한 액세스 권한을 부여 했습니까? –

+0

_solved_를 제목에 추가하지 마십시오. 가능한 경우 답변을 승인 된 것으로 표시하고 다른 사람에게 질문을 해결할 것이라고 말합니다. 고맙습니다. – Bugs

+0

2 일 동안 답변을 추가 할 수 없어서 그때까지 해결 된 상태로 남겨 두어 사람들이이 질문에 시간을 낭비하지 않게 할 것이라고 생각했습니다. –

답변

0

에 대한

내 Nginx에 cnfig 나는 답을 발견! 내 nginx.conf의 첫 번째 서버는 "www"가없는 사이트에만갔습니다. 그것 앞에는 "www."가 붙습니다. 서버 이름이 문제를 해결 했으므로