Nginx 和 certbot 的 ERR_SSL_PROTOCOL_ERROR (ERR_SSL_PROTOCOL_ERROR with Nginx & certbot)


問題描述

Nginx 和 certbot 的 ERR_SSL_PROTOCOL_ERROR (ERR_SSL_PROTOCOL_ERROR with Nginx & certbot)

我正在嘗試在 Raspberry 上安裝網絡服務器。我安裝了 nginx 和 certbot 並使用以下方法生成了 SSL 證書: sudo certbot certonly ‑‑webroot ‑w /home/pi/webapp01 ‑d godestalbin.com ‑d www.godestalbin.com 我的 Nginx 配置現在是:

server {
   listen 443 ssl;
   server_name godestalbin.ga www.godestalbin.ga;
   ssl_certificate /etc/letsencrypt/live/godestalbin.ga/fullchain.pem;
   ssl_certificate_key /etc/letsencrypt/live/godestalbin.ga/privkey.pem;

   location / {
      root /home/pi/webapp01;
   }
}

server {
  listen 80;
  server_name godestalbin.ga;
  return 301 https://$host$request_uri;
}

但是,我無法在 Chrome 中顯示我的網站

Ce site ne peut pas fournir de connexion sécuriséewww.godestalbin.ga a envoyé une réponse incorrecte.
This site cannot provide a secure connection
www.godestalbin.ga gave an incorrect answer
Essayez d'exécuter les diagnostics réseau de Windows.
Try to execute Windows diagnostics
ERR_SSL_PROTOCOL_ERROR

如果我在我的網站的樹莓派本地顯示,我可以看到該頁面(我猜是因為 Chromium 不那麼嚴格關於安全)。它還說證書無效(我猜是因為 localhost 與證書的 godestalbin.ga 不匹配)。我可以顯示證書的詳細信息(請參閱屏幕副本)。GuyOlivierThanh Nguyen Van)

參考文件

  1. ERR_SSL_PROTOCOL_ERROR with Nginx & certbot (CC BY‑SA 2.5/3.0/4.0)

#Certbot #nginx






相關問題

certbot-auto /letsencrypt 為指向同一服務器的多個域設置一個密鑰 (certbot-auto / letsencrypt setting up one key for multiple domains pointing to the same server)

certbot 工作時 Phpseclib 早期執行 (Phpseclib early execution while certbot working)

“httpd.service 的作業失敗,因為控制進程以錯誤代碼退出。” 我該如何解決? ("Job for httpd.service failed because the control process exited with error code." How do I fix this?)

無法使用 certbot renew/Letsencrypt 續訂證書 (Cannot renew certificates with certbot renew/Letsencrypt)

為 AWS 中託管的網站設置 HTTPS,但指向局域網中的 webAPI (Setting up HTTPS for a website hosted in AWS, but points to a webAPI in the local area network)

docker 發送內部 cerbot 日誌文件到主機 journald (docker send internal cerbot log file to host journald)

Nginx 允許來自任何域的流量 (Nginx allow traffic from any domain)

如何有效地為 2 個遠程節點使用 Kubernetes (How to use Kubernetes effectively for 2 distant nodes)

如何在 docker 映像中創建目錄? (How can I make dir inside docker image?)

更新 Certbot 時出現“連接超時(可能是防火牆問題)” ("Timeout during connect (likely firewall problem)" while renewing Certbot)

安裝certbot後找不到nginx頁面錯誤 (nginx page not found error after certbot installation)

Nginx 和 certbot 的 ERR_SSL_PROTOCOL_ERROR (ERR_SSL_PROTOCOL_ERROR with Nginx & certbot)







留言討論