Q&A

책을 따라하다가 막히는 부분이 있나요?
질문을 남겨주세요.

인증서 발급이 안되는 문제..

1 year, 4 months ago

202244042 202244042

먼저 제 첫 사이트를 저자님 책을 통해 만들어볼 수 있었음에 감사를 표합니다 :)

블로그를 만들다가 어려운 부분이 있어 글을 남기게 되었습니다..

-- 먼저 쉘 스크립트 실행 후 인증서가 등록되지 않고 

 이라고 뜨는 상태입니다 

메세지는 다음과 같습니다.

ubuntu@ip-172-26-6-204:~/github/My_webpage$ sudo ./init-letsencrypt.sh

Existing data found for myfirst-webpage.net. Continue and replace existing certificate? (y

/N) y

### Creating dummy certificate for myfirst-webpage.net ...

Generating a RSA private key

..............++++

....................++++

writing new private key to '/etc/letsencrypt/live/myfirst-webpage.net/privkey.pem'

-----


### Starting nginx ...

Recreating mywebpage_db_1 ... 

Recreating mywebpage_db_1 ... done

Recreating mywebpage_web_1 ... 

Recreating mywebpage_web_1 ... done

Recreating mywebpage_nginx_1 ... 

Recreating mywebpage_nginx_1 ... done


### Deleting dummy certificate for myfirst-webpage.net ...


### Requesting Let's Encrypt certificate for myfirst-webpage.net ...

Saving debug log to /var/log/letsencrypt/letsencrypt.log

Requesting a certificate for myfirst-webpage.net and www.myfirst-webpage.net


Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Auth

ority reported these problems:

  Domain: myfirst-webpage.net

  Type:   unauthorized

  Detail: 43.202.141.15: Invalid response from http://myfirst-webpage.net/.well-known/acme

-challenge/3sg0Z2E2fX4A817fFPGj81__6-bgAZzOpB0BM6P--44: 404


  Domain: www.myfirst-webpage.net

  Type:   unauthorized

  Detail: 43.202.141.15: Invalid response from http://myfirst-webpage.net/.well-known/acme

-challenge/3sg0Z2E2fX4A817fFPGj81__6-bgAZzOpB0BM6P--44: 404


  Domain: www.myfirst-webpage.net

  Type:   unauthorized

  Detail: 43.202.141.15: Invalid response from http://www.myfirst-webpage.net/.well-known/

acme-challenge/ZklQ_kMsux1qGwwtoOtrCGq_lIMsW1CjPLamywMa3_s: 404


Hint: The Certificate Authority failed to download the temporary challenge files created b

y Certbot. Ensure that the listed domains serve their content from the provided --webroot-

### Creating dummy certificate for myfirst-webpage.net ...

Generating a RSA private key

......................................++++

.........................++++

writing new private key to '/etc/letsencrypt/live/myfirst-webpage.net/privkey.pem'

-----


### Starting nginx ...

Recreating mywebpage_db_1 ... 

Recreating mywebpage_db_1 ... done

Recreating mywebpage_web_1 ... 

Recreating mywebpage_web_1 ... done

Recreating mywebpage_nginx_1 ... 

Recreating mywebpage_nginx_1 ... done


### Deleting dummy certificate for myfirst-webpage.net ...


### Requesting Let's Encrypt certificate for myfirst-webpage.net ...

Saving debug log to /var/log/letsencrypt/letsencrypt.log

Requesting a certificate for myfirst-webpage.net and www.myfirst-webpage.net


Successfully received certificate.

Certificate is saved at: /etc/letsencrypt/live/myfirst-webpage.net/fullchain.pem

Key is saved at:         /etc/letsencrypt/live/myfirst-webpage.net/privkey.pem

This certificate expires on 2023-12-09.

These files will be updated when the certificate renews.


NEXT STEPS:

- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in 

the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.


### Reloading nginx ...

2023/09/10 12:29:01 [notice] 22#22: signal process started

ubuntu@ip-172-26-6-204:~/github/My_webpage$ 

----------------------------------------------


추가적으로 뒷 부분을 이어 진행하려고 도메인/admin에 로그인하면

해당 페이지가 보이는데 인증서 문제가 해결되면 같이 해결되는 부분일까요?... (html 문서 중 form이 들어가는 부분은 다 {% csrf_token %}처리 되어 있고, 인증서 발급받고 유저 만든 뒤부터 해당 오류가 난 거 같아요 ㅜㅜ...)


sungyong
sungyong   1 year, 4 months ago

안녕하세요. 일단 certificate은 성공적으로 받은 상태 같습니다. 하지만 아직 적용이 되지 않은 상태인 것 같네요. 보여주신 URL로 제가 접속을 했을 때는 nginx 기본 페이지가 나오는데 현재 어떤 상태이신지요?

443 포트를 열어놓았는지 확인 부탁드립니다. 

그리고 서버를 재시작해보세요. 

Updated: Sept. 11, 2023, 6:40 p.m.

Leave a Comment:
목록보기
Search
  • 자유게시판
  • Q&A