簡體   English   中英

ERR_SSL_PROTOCOL_ERROR 與 Nginx & certbot

[英]ERR_SSL_PROTOCOL_ERROR with Nginx & certbot

我正在嘗試在 Raspberry 上安裝網絡服務器。 I installed nginx and certbot and generated SSL certificate using: sudo certbot certonly --webroot -w /home/pi/webapp01 -d godestalbin.com -d www.godestalbin.com My Nginx config is now:

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 不匹配)。 我能夠顯示證書的詳細信息(請參閱屏幕副本)。 在此處輸入圖像描述

我也看看給出的分析: https://check-your-website.server-daten.de/?q=godestalbin.ga

https://godestalbin.ga/
88.127.87.207
Http-Status: -4

SendFailure - The underlying connection was closed: An unexpected error occurred on a send.

您生成了 certbot SSL 域: www.godestalbin.com

sudo certbot certonly --webroot -w /home/pi/webapp01 -d godestalbin.com -d www.godestalbin.com

但是您使用server_name godestalbin.ga www.godestalbin.ga;

請僅將它們更正為相同的域。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM