Replies: 1 comment
-
현재 상황
시도한 방법
# (1) apt로 certbot 재설치
$ sudo apt update
$ sudo apt upgrade
$ sudo add-apt-repository ppa:certbot/certbot # (2) nginx 설치
$ sudo apt install python-certbot-nginx # (3) nginx 기본파일에서 server_name 수정
$ sudo vim /etc/nginx/sites-available/default server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name saview.link www.saview.link; // 도메인으로 수정한 server_name
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
} # (4) 설정이 제대로 되었는지 확인 (제대로 설정된 것을 확인)
$ sudo nginx -t # (5) 재시작
$ sudo systemctl reload nginx
$ sudo service nginx start
# 방화벽 상태 확인 및 업데이트
$ sudo ufw status
$ sudo ufw enable
$ sudo ufw allow 'Nginx Full'
$ sudo ufw allow OpenSSH 에러 코드Certbot failed to authenticate some domains (authenticator: standalone). The Certificate Authority reported these problems:
Domain: www.saview.link
Type: unauthorized
Detail: 2600:9000:2177:4800:9:69f6:78c0:93a1: Invalid response from http://www.saview.link/.well-known/acme-challenge/4CjfcbuTkj7zphcbfdl_wOeyAVpB3lSZMqfnVnBiWLA: "<!doctype html><html lang=\"en\"><head><meta charset=\"utf-8\"/><link rel=\"icon\" href=\"/favicon.ico\"/><meta name=\"viewport\" content="
Hint: The Certificate Authority failed to download the challenge files from the temporary standalone webserver started by Certbot on port 80. Ensure that the listed domains point to this machine and that it can accept inbound connections from the internet.
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details. Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for saview.link
http-01 challenge for www.saview.link
Waiting for verification...
Challenge failed for domain saview.link
Challenge failed for domain www.saview.link
http-01 challenge for saview.link
http-01 challenge for www.saview.link
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: saview.link
Type: dns
Detail: no valid A records found for saview.link; no valid AAAA
records found for saview.link
- The following errors were reported by the server:
Domain: www.saview.link
Type: unauthorized
Detail: 2600:9000:215f:4000:9:69f6:78c0:93a1: Invalid response from
http://www.saview.link/.well-known/acme-challenge/5YyMORKoYNz_3obRqrH9xrkNB4xapi7-ndx38-qWB3Q:
"<!doctype html><html lang=\"en\"><head><meta
charset=\"utf-8\"/><link rel=\"icon\" href=\"/favicon.ico\"/><meta
name=\"viewport\" content="
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. 궁금한 점
참고한 자료 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
백엔드 https구성 과정에서 인증서가 발급이 안되는 문제.
AWS EC2에서 certbot으로 Let's Encrypt 무료 인증서를 발급받으려고 공식 홈페이지 https://certbot.eff.org/instructions?ws=webproduct&os=ubuntufocal
로 진행하였으나 아래 사진과 같이 오류가 뜨며 막힘
에러 코드를 붙여넣기 해 주세요.
검색했던 링크가 있다면 첨부해 주세요.
https://community.letsencrypt.org/t/type-unauthorized-detail-invalid-response-from/36183 -> IPv6 허용
https://yunamom.tistory.com/226 -> 톰캣 루트 우리 서버에는 없음
https://stackoverflow.com/questions/61324327/django-certbot-unauthorized-invalid-response-https -> 80포트 오픈되있음
Beta Was this translation helpful? Give feedback.
All reactions