VPS侦探论坛

 找回密码
 注册
查看: 1199|回复: 3

SSL证书安装失败,SSL目录下有对应的证书文件。

[复制链接]
发表于 2023-11-2 17:19:57 | 显示全部楼层 |阅读模式

添加新站点过程中 ,选择了安装SSL证书。

  1. server
  2.     {
  3.         listen 80;
  4.         #listen [::]:80;
  5.         server_name www.lnmp.org lnmp.org;
  6.         index index.html index.htm index.php default.html default.htm default.php;
  7.         root  /home/wwwroot/lnmp.org;

  8.         include rewrite/wordpress.conf;
  9.         #error_page   404   /404.html;

  10.         # Deny access to PHP files in specific directory
  11.         #location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }

  12.         include enable-php.conf;

  13.         location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  14.         {
  15.             expires      30d;
  16.         }

  17.         location ~ .*\.(js|css)?$
  18.         {
  19.             expires      12h;
  20.         }

  21.         location ~ /.well-known {
  22.             allow all;
  23.         }

  24.         location ~ /\.
  25.         {
  26.             deny all;
  27.         }

  28.         access_log  /home/wwwlogs/lnmp.org.log;
  29.     }
复制代码
/usr/local/nginx/conf/vhost/ 对应域名配置文件内容如上


/usr/local/nginx/conf/ssl/ 对应域名的SSL文件 lnmp.org.csr 和  lnmp.org.key


手动建立了一个index.html 静态文件进行访问测试

前台测试 访问http 正常,访问https无法打开页面

问题中以lnmp.org代替标识我的域名

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-11-2 18:12:52 | 显示全部楼层



  1. [Thu Nov  2 17:54:40 CST 2023] lnmp.org:Verify error:69.165.78.55: Fet                                      ching http://lnmp.org/.well-known/acme-challenge/gWmmvMi9E6xmlExzOPSWW                                      -8DrpGMAUIGf5pWRqrvoD8: Timeout during connect (likely firewall problem)
  2. [Thu Nov  2 17:54:40 CST 2023] Please check log file for more details: /usr/loca                                      l/acme.sh/acme.sh.log
  3. Generate SSL Certificate failed!
复制代码

Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2023-11-2 18:14:24 | 显示全部楼层

  1. Thu Nov  2 15:46:42 CST 2023] Running cmd: issue
  2. [Thu Nov  2 15:46:42 CST 2023] _main_domain='www.cndigitalclock.com'
  3. [Thu Nov  2 15:46:42 CST 2023] _alt_domains='cndigitalclock.com'
  4. [Thu Nov  2 15:46:42 CST 2023] Using config home:/usr/local/acme.sh
  5. [Thu Nov  2 15:46:42 CST 2023] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
  6. [Thu Nov  2 15:46:42 CST 2023] DOMAIN_PATH='/usr/local/nginx/conf/ssl/www.cndigitalclock.com'
  7. [Thu Nov  2 15:46:42 CST 2023] Using ACME_DIRECTORY: https://acme-v02.api.letsencrypt.org/directory
  8. [Thu Nov  2 15:46:42 CST 2023] _init api for server: https://acme-v02.api.letsencrypt.org/directory
  9. [Thu Nov  2 15:46:42 CST 2023] GET
  10. [Thu Nov  2 15:46:42 CST 2023] url='https://acme-v02.api.letsencrypt.org/directory'
  11. [Thu Nov  2 15:46:42 CST 2023] timeout=
  12. [Thu Nov  2 15:46:42 CST 2023] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  13. [Thu Nov  2 15:46:45 CST 2023] ret='0'
  14. [Thu Nov  2 15:46:45 CST 2023] ACME_KEY_CHANGE='https://acme-v02.api.letsencrypt.org/acme/key-change'
  15. [Thu Nov  2 15:46:45 CST 2023] ACME_NEW_AUTHZ
  16. [Thu Nov  2 15:46:45 CST 2023] ACME_NEW_ORDER='https://acme-v02.api.letsencrypt.org/acme/new-order'
  17. [Thu Nov  2 15:46:45 CST 2023] ACME_NEW_ACCOUNT='https://acme-v02.api.letsencrypt.org/acme/new-acct'
  18. [Thu Nov  2 15:46:45 CST 2023] ACME_REVOKE_CERT='https://acme-v02.api.letsencrypt.org/acme/revoke-cert'
  19. [Thu Nov  2 15:46:45 CST 2023] ACME_AGREEMENT='https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf'
  20. [Thu Nov  2 15:46:45 CST 2023] ACME_NEW_NONCE='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
  21. [Thu Nov  2 15:46:45 CST 2023] Using CA: https://acme-v02.api.letsencrypt.org/directory
  22. [Thu Nov  2 15:46:45 CST 2023] _on_before_issue
  23. [Thu Nov  2 15:46:45 CST 2023] _chk_main_domain='www.cndigitalclock.com'
  24. [Thu Nov  2 15:46:45 CST 2023] _chk_alt_domains='cndigitalclock.com'
  25. [Thu Nov  2 15:46:45 CST 2023] Le_LocalAddress
  26. [Thu Nov  2 15:46:45 CST 2023] d='www.cndigitalclock.com'
  27. [Thu Nov  2 15:46:45 CST 2023] Check for domain='www.cndigitalclock.com'
  28. [Thu Nov  2 15:46:45 CST 2023] _currentRoot='/home/wwwroot/www.cndigitalclock.com'
  29. [Thu Nov  2 15:46:45 CST 2023] d='cndigitalclock.com'
  30. [Thu Nov  2 15:46:45 CST 2023] Check for domain='cndigitalclock.com'
  31. [Thu Nov  2 15:46:45 CST 2023] _currentRoot='/home/wwwroot/www.cndigitalclock.com'
  32. [Thu Nov  2 15:46:45 CST 2023] d
  33. [Thu Nov  2 15:46:45 CST 2023] config file is empty, can not read CA_KEY_HASH
  34. [Thu Nov  2 15:46:45 CST 2023] Using config home:/usr/local/acme.sh
  35. [Thu Nov  2 15:46:45 CST 2023] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
  36. [Thu Nov  2 15:46:45 CST 2023] _init api for server: https://acme-v02.api.letsencrypt.org/directory
复制代码
/usr/local/acme.sh/acme.sh.log

错误日志 如上代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2023-11-3 13:22:29 | 显示全部楼层



日志只有一部分,缺失了最重要的部分
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-24 10:10 , Processed in 0.025925 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表