VPS侦探论坛

 找回密码
 注册
查看: 2376|回复: 12

lnmp1.8 https过期续签失败

[复制链接]
发表于 2022-8-30 14:02:49 | 显示全部楼层 |阅读模式

如标题所示,我网站现在已经过期,然后用命令acme.sh --renew -d xxx.com
显示失败,如图所示:

这个要怎么解决?


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


没日志的话,无法肯定确定,截图上是验证文件404,404有可能网站更改过目录或配置文件导致的,如果套了cdn也可能会导致
建议提供acme.sh.log
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-8-31 09:07:57 | 显示全部楼层

licess 发表于 2022-8-30 20:05
没日志的话,无法肯定确定,截图上是验证文件404,404有可能网站更改过目录或配置文件导致的,如果套了cdn ...

谢谢军哥的回复,我把acme.sh.log代码贴上,麻烦军哥帮我看看,谢谢。
  1. [Wed Aug 31 09:06:25 CST 2022] Running cmd: renew
  2. [Wed Aug 31 09:06:25 CST 2022] _renewServer
  3. [Wed Aug 31 09:06:25 CST 2022] Using config home:/usr/local/acme.sh
  4. [Wed Aug 31 09:06:25 CST 2022] default_acme_server
  5. [Wed Aug 31 09:06:25 CST 2022] ACME_DIRECTORY='https://acme.zerossl.com/v2/DV90'
  6. [Wed Aug 31 09:06:25 CST 2022] DOMAIN_PATH='/usr/local/nginx/conf/ssl/wenda.snsnz.com'
  7. [Wed Aug 31 09:06:25 CST 2022] Renew: 'wenda.snsnz.com'
  8. [Wed Aug 31 09:06:25 CST 2022] Le_API='https://acme-v02.api.letsencrypt.org/directory'
  9. [Wed Aug 31 09:06:25 CST 2022] Renew to Le_API=https://acme-v02.api.letsencrypt.org/directory
  10. [Wed Aug 31 09:06:25 CST 2022] Using config home:/usr/local/acme.sh
  11. [Wed Aug 31 09:06:25 CST 2022] ACME_DIRECTORY='https://acme-v02.api.letsencrypt.org/directory'
  12. [Wed Aug 31 09:06:25 CST 2022] _main_domain='wenda.snsnz.com'
  13. [Wed Aug 31 09:06:25 CST 2022] _alt_domains='no'
  14. [Wed Aug 31 09:06:25 CST 2022] Le_NextRenewTime='1659082914'
  15. [Wed Aug 31 09:06:25 CST 2022] Using ACME_DIRECTORY: https://acme-v02.api.letsencrypt.org/directory
  16. [Wed Aug 31 09:06:25 CST 2022] _init api for server: https://acme-v02.api.letsencrypt.org/directory
  17. [Wed Aug 31 09:06:25 CST 2022] GET
  18. [Wed Aug 31 09:06:25 CST 2022] url='https://acme-v02.api.letsencrypt.org/directory'
  19. [Wed Aug 31 09:06:25 CST 2022] timeout=
  20. [Wed Aug 31 09:06:25 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  21. [Wed Aug 31 09:06:27 CST 2022] ret='0'
  22. [Wed Aug 31 09:06:27 CST 2022] ACME_KEY_CHANGE='https://acme-v02.api.letsencrypt.org/acme/key-change'
  23. [Wed Aug 31 09:06:27 CST 2022] ACME_NEW_AUTHZ
  24. [Wed Aug 31 09:06:27 CST 2022] ACME_NEW_ORDER='https://acme-v02.api.letsencrypt.org/acme/new-order'
  25. [Wed Aug 31 09:06:27 CST 2022] ACME_NEW_ACCOUNT='https://acme-v02.api.letsencrypt.org/acme/new-acct'
  26. [Wed Aug 31 09:06:27 CST 2022] ACME_REVOKE_CERT='https://acme-v02.api.letsencrypt.org/acme/revoke-cert'
  27. [Wed Aug 31 09:06:27 CST 2022] ACME_AGREEMENT='https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017-w-v1.3-notice.pdf'
  28. [Wed Aug 31 09:06:27 CST 2022] ACME_NEW_NONCE='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
  29. [Wed Aug 31 09:06:27 CST 2022] Using CA: https://acme-v02.api.letsencrypt.org/directory
  30. [Wed Aug 31 09:06:27 CST 2022] _on_before_issue
  31. [Wed Aug 31 09:06:27 CST 2022] _chk_main_domain='wenda.snsnz.com'
  32. [Wed Aug 31 09:06:27 CST 2022] _chk_alt_domains
  33. [Wed Aug 31 09:06:27 CST 2022] Le_LocalAddress
  34. [Wed Aug 31 09:06:27 CST 2022] d='wenda.snsnz.com'
  35. [Wed Aug 31 09:06:27 CST 2022] Check for domain='wenda.snsnz.com'
  36. [Wed Aug 31 09:06:27 CST 2022] _currentRoot='/home/wwwroot/wenda.snsnz.com'
  37. [Wed Aug 31 09:06:27 CST 2022] d
  38. [Wed Aug 31 09:06:27 CST 2022] _saved_account_key_hash is not changed, skip register account.
  39. [Wed Aug 31 09:06:27 CST 2022] Read key length:2048
  40. [Wed Aug 31 09:06:27 CST 2022] _createcsr
  41. [Wed Aug 31 09:06:27 CST 2022] Single domain='wenda.snsnz.com'
  42. [Wed Aug 31 09:06:27 CST 2022] Getting domain auth token for each domain
  43. [Wed Aug 31 09:06:27 CST 2022] d
  44. [Wed Aug 31 09:06:27 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/new-order'
  45. [Wed Aug 31 09:06:27 CST 2022] payload='{"identifiers": [{"type":"dns","value":"wenda.snsnz.com"}]}'
  46. [Wed Aug 31 09:06:27 CST 2022] RSA key
  47. [Wed Aug 31 09:06:27 CST 2022] HEAD
  48. [Wed Aug 31 09:06:27 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
  49. [Wed Aug 31 09:06:27 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g  -I  '
  50. [Wed Aug 31 09:06:28 CST 2022] _ret='0'
  51. [Wed Aug 31 09:06:28 CST 2022] POST
  52. [Wed Aug 31 09:06:28 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/new-order'
  53. [Wed Aug 31 09:06:28 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  54. [Wed Aug 31 09:06:30 CST 2022] _ret='0'
  55. [Wed Aug 31 09:06:30 CST 2022] code='201'
  56. [Wed Aug 31 09:06:30 CST 2022] Le_LinkOrder='https://acme-v02.api.letsencrypt.org/acme/order/564061196/121083386897'
  57. [Wed Aug 31 09:06:30 CST 2022] Le_OrderFinalize='https://acme-v02.api.letsencrypt.org/acme/finalize/564061196/121083386897'
  58. [Wed Aug 31 09:06:30 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/148001281867'
  59. [Wed Aug 31 09:06:30 CST 2022] payload
  60. [Wed Aug 31 09:06:30 CST 2022] POST
  61. [Wed Aug 31 09:06:30 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/authz-v3/148001281867'
  62. [Wed Aug 31 09:06:30 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  63. [Wed Aug 31 09:06:31 CST 2022] _ret='0'
  64. [Wed Aug 31 09:06:31 CST 2022] code='200'
  65. [Wed Aug 31 09:06:31 CST 2022] d='wenda.snsnz.com'
  66. [Wed Aug 31 09:06:31 CST 2022] Getting webroot for domain='wenda.snsnz.com'
  67. [Wed Aug 31 09:06:31 CST 2022] _w='/home/wwwroot/wenda.snsnz.com'
  68. [Wed Aug 31 09:06:31 CST 2022] _currentRoot='/home/wwwroot/wenda.snsnz.com'
  69. [Wed Aug 31 09:06:31 CST 2022] entry='"type":"http-01","status":"pending","url":"https://acme-v02.api.letsencrypt.org/acme/chall-v3/148001281867/x9QHTg","token":"n8UlriejP9I75bCeaDRpJQwBHFmDRcdwsV__a9RrwWk"'
  70. [Wed Aug 31 09:06:31 CST 2022] token='n8UlriejP9I75bCeaDRpJQwBHFmDRcdwsV__a9RrwWk'
  71. [Wed Aug 31 09:06:31 CST 2022] uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148001281867/x9QHTg'
  72. [Wed Aug 31 09:06:31 CST 2022] keyauthorization='n8UlriejP9I75bCeaDRpJQwBHFmDRcdwsV__a9RrwWk.eLZTlw4_Wbes-95llQ7CaaIAslS4SFwRi4E2lZ5hFxU'
  73. [Wed Aug 31 09:06:31 CST 2022] dvlist='wenda.snsnz.com#n8UlriejP9I75bCeaDRpJQwBHFmDRcdwsV__a9RrwWk.eLZTlw4_Wbes-95llQ7CaaIAslS4SFwRi4E2lZ5hFxU#https://acme-v02.api.letsencrypt.org/acme/chall-v3/148001281867/x9QHTg#http-01#/home/wwwroot/wenda.snsnz.com'
  74. [Wed Aug 31 09:06:31 CST 2022] d
  75. [Wed Aug 31 09:06:31 CST 2022] vlist='wenda.snsnz.com#n8UlriejP9I75bCeaDRpJQwBHFmDRcdwsV__a9RrwWk.eLZTlw4_Wbes-95llQ7CaaIAslS4SFwRi4E2lZ5hFxU#https://acme-v02.api.letsencrypt.org/acme/chall-v3/148001281867/x9QHTg#http-01#/home/wwwroot/wenda.snsnz.com,'
  76. [Wed Aug 31 09:06:31 CST 2022] d='wenda.snsnz.com'
  77. [Wed Aug 31 09:06:31 CST 2022] ok, let's start to verify
  78. [Wed Aug 31 09:06:31 CST 2022] Verifying: wenda.snsnz.com
  79. [Wed Aug 31 09:06:31 CST 2022] d='wenda.snsnz.com'
  80. [Wed Aug 31 09:06:31 CST 2022] keyauthorization='n8UlriejP9I75bCeaDRpJQwBHFmDRcdwsV__a9RrwWk.eLZTlw4_Wbes-95llQ7CaaIAslS4SFwRi4E2lZ5hFxU'
  81. [Wed Aug 31 09:06:31 CST 2022] uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148001281867/x9QHTg'
  82. [Wed Aug 31 09:06:31 CST 2022] _currentRoot='/home/wwwroot/wenda.snsnz.com'
  83. [Wed Aug 31 09:06:31 CST 2022] wellknown_path='/home/wwwroot/wenda.snsnz.com/.well-known/acme-challenge'
  84. [Wed Aug 31 09:06:31 CST 2022] writing token:n8UlriejP9I75bCeaDRpJQwBHFmDRcdwsV__a9RrwWk to /home/wwwroot/wenda.snsnz.com/.well-known/acme-challenge/n8UlriejP9I75bCeaDRpJQwBHFmDRcdwsV__a9RrwWk
  85. [Wed Aug 31 09:06:31 CST 2022] Changing owner/group of .well-known to www:www
  86. [Wed Aug 31 09:06:31 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148001281867/x9QHTg'
  87. [Wed Aug 31 09:06:31 CST 2022] payload='{}'
  88. [Wed Aug 31 09:06:31 CST 2022] POST
  89. [Wed Aug 31 09:06:31 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148001281867/x9QHTg'
  90. [Wed Aug 31 09:06:31 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  91. [Wed Aug 31 09:06:32 CST 2022] _ret='0'
  92. [Wed Aug 31 09:06:32 CST 2022] code='200'
  93. [Wed Aug 31 09:06:32 CST 2022] trigger validation code: 200
  94. [Wed Aug 31 09:06:32 CST 2022] Pending, The CA is processing your order, please just wait. (1/30)
  95. [Wed Aug 31 09:06:32 CST 2022] sleep 2 secs to verify again
  96. [Wed Aug 31 09:06:35 CST 2022] checking
  97. [Wed Aug 31 09:06:35 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148001281867/x9QHTg'
  98. [Wed Aug 31 09:06:35 CST 2022] payload
  99. [Wed Aug 31 09:06:35 CST 2022] POST
  100. [Wed Aug 31 09:06:35 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148001281867/x9QHTg'
  101. [Wed Aug 31 09:06:35 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  102. [Wed Aug 31 09:06:36 CST 2022] _ret='0'
  103. [Wed Aug 31 09:06:36 CST 2022] code='200'
  104. [Wed Aug 31 09:06:37 CST 2022] wenda.snsnz.com:Verify error:81.70.204.73: Invalid response from https://wenda.snsnz.com/.well-known/acme-challenge/n8UlriejP9I75bCeaDRpJQwBHFmDRcdwsV__a9RrwWk: 404
  105. [Wed Aug 31 09:06:37 CST 2022] pid
  106. [Wed Aug 31 09:06:37 CST 2022] No need to restore nginx, skip.
  107. [Wed Aug 31 09:06:37 CST 2022] _clearupdns
  108. [Wed Aug 31 09:06:37 CST 2022] dns_entries
  109. [Wed Aug 31 09:06:37 CST 2022] skip dns.
  110. [Wed Aug 31 09:06:37 CST 2022] _on_issue_err
  111. [Wed Aug 31 09:06:37 CST 2022] Please check log file for more details: /usr/local/acme.sh/acme.sh.log
  112. [Wed Aug 31 09:06:37 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148001281867/x9QHTg'
  113. [Wed Aug 31 09:06:37 CST 2022] payload='{}'
  114. [Wed Aug 31 09:06:37 CST 2022] POST
  115. [Wed Aug 31 09:06:37 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148001281867/x9QHTg'
  116. [Wed Aug 31 09:06:37 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  117. [Wed Aug 31 09:06:37 CST 2022] _ret='0'
  118. [Wed Aug 31 09:06:37 CST 2022] code='400'
复制代码




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



caiheqing 发表于 2022-8-31 09:07
谢谢军哥的回复,我把acme.sh.log代码贴上,麻烦军哥帮我看看,谢谢。

军哥,我换了DNS之后就出现下图这个错误:

acmd.sh.log代码如下:

  1. [Wed Aug 31 17:36:47 CST 2022] d
  2. [Wed Aug 31 17:36:47 CST 2022] vlist='wenda.snsnz.com#UqaGfuUtoLCjMeG0HVTrD89Hzmhg_pA0semMlQRaTuE.eLZTlw4_Wbes-95llQ7CaaIAslS4SFwRi4E2lZ5hFxU#https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg#http-01#/home/wwwroot/wenda.snsnz.com,'
  3. [Wed Aug 31 17:36:47 CST 2022] d='wenda.snsnz.com'
  4. [Wed Aug 31 17:36:47 CST 2022] ok, let's start to verify
  5. [Wed Aug 31 17:36:47 CST 2022] Verifying: wenda.snsnz.com
  6. [Wed Aug 31 17:36:47 CST 2022] d='wenda.snsnz.com'
  7. [Wed Aug 31 17:36:47 CST 2022] keyauthorization='UqaGfuUtoLCjMeG0HVTrD89Hzmhg_pA0semMlQRaTuE.eLZTlw4_Wbes-95llQ7CaaIAslS4SFwRi4E2lZ5hFxU'
  8. [Wed Aug 31 17:36:47 CST 2022] uri='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  9. [Wed Aug 31 17:36:47 CST 2022] _currentRoot='/home/wwwroot/wenda.snsnz.com'
  10. [Wed Aug 31 17:36:47 CST 2022] wellknown_path='/home/wwwroot/wenda.snsnz.com/.well-known/acme-challenge'
  11. [Wed Aug 31 17:36:47 CST 2022] writing token:UqaGfuUtoLCjMeG0HVTrD89Hzmhg_pA0semMlQRaTuE to /home/wwwroot/wenda.snsnz.com/.well-known/acme-challenge/UqaGfuUtoLCjMeG0HVTrD89Hzmhg_pA0semMlQRaTuE
  12. [Wed Aug 31 17:36:47 CST 2022] Changing owner/group of .well-known to www:www
  13. [Wed Aug 31 17:36:47 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  14. [Wed Aug 31 17:36:47 CST 2022] payload='{}'
  15. [Wed Aug 31 17:36:47 CST 2022] POST
  16. [Wed Aug 31 17:36:47 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  17. [Wed Aug 31 17:36:47 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  18. [Wed Aug 31 17:36:47 CST 2022] _ret='0'
  19. [Wed Aug 31 17:36:47 CST 2022] code='200'
  20. [Wed Aug 31 17:36:47 CST 2022] trigger validation code: 200
  21. [Wed Aug 31 17:36:47 CST 2022] Pending, The CA is processing your order, please just wait. (1/30)
  22. [Wed Aug 31 17:36:47 CST 2022] sleep 2 secs to verify again
  23. [Wed Aug 31 17:36:50 CST 2022] checking
  24. [Wed Aug 31 17:36:50 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  25. [Wed Aug 31 17:36:50 CST 2022] payload
  26. [Wed Aug 31 17:36:50 CST 2022] POST
  27. [Wed Aug 31 17:36:50 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  28. [Wed Aug 31 17:36:50 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  29. [Wed Aug 31 17:36:52 CST 2022] _ret='0'
  30. [Wed Aug 31 17:36:52 CST 2022] code='200'
  31. [Wed Aug 31 17:36:52 CST 2022] Pending, The CA is processing your order, please just wait. (2/30)
  32. [Wed Aug 31 17:36:52 CST 2022] sleep 2 secs to verify again
  33. [Wed Aug 31 17:36:55 CST 2022] checking
  34. [Wed Aug 31 17:36:55 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  35. [Wed Aug 31 17:36:55 CST 2022] payload
  36. [Wed Aug 31 17:36:55 CST 2022] POST
  37. [Wed Aug 31 17:36:55 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  38. [Wed Aug 31 17:36:55 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  39. [Wed Aug 31 17:36:58 CST 2022] _ret='0'
  40. [Wed Aug 31 17:36:58 CST 2022] code='200'
  41. [Wed Aug 31 17:36:58 CST 2022] Pending, The CA is processing your order, please just wait. (3/30)
  42. [Wed Aug 31 17:36:58 CST 2022] sleep 2 secs to verify again
  43. [Wed Aug 31 17:37:01 CST 2022] checking
  44. [Wed Aug 31 17:37:01 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  45. [Wed Aug 31 17:37:01 CST 2022] payload
  46. [Wed Aug 31 17:37:01 CST 2022] POST
  47. [Wed Aug 31 17:37:01 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  48. [Wed Aug 31 17:37:01 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  49. [Wed Aug 31 17:37:04 CST 2022] _ret='0'
  50. [Wed Aug 31 17:37:04 CST 2022] code='200'
  51. [Wed Aug 31 17:37:04 CST 2022] Pending, The CA is processing your order, please just wait. (4/30)
  52. [Wed Aug 31 17:37:04 CST 2022] sleep 2 secs to verify again
  53. [Wed Aug 31 17:37:07 CST 2022] checking
  54. [Wed Aug 31 17:37:07 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  55. [Wed Aug 31 17:37:07 CST 2022] payload
  56. [Wed Aug 31 17:37:07 CST 2022] POST
  57. [Wed Aug 31 17:37:07 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  58. [Wed Aug 31 17:37:07 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  59. [Wed Aug 31 17:37:08 CST 2022] _ret='0'
  60. [Wed Aug 31 17:37:08 CST 2022] code='200'
  61. [Wed Aug 31 17:37:08 CST 2022] Pending, The CA is processing your order, please just wait. (5/30)
  62. [Wed Aug 31 17:37:08 CST 2022] sleep 2 secs to verify again
  63. [Wed Aug 31 17:37:11 CST 2022] checking
  64. [Wed Aug 31 17:37:11 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  65. [Wed Aug 31 17:37:11 CST 2022] payload
  66. [Wed Aug 31 17:37:11 CST 2022] POST
  67. [Wed Aug 31 17:37:11 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  68. [Wed Aug 31 17:37:11 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  69. [Wed Aug 31 17:37:12 CST 2022] _ret='0'
  70. [Wed Aug 31 17:37:12 CST 2022] code='200'
  71. [Wed Aug 31 17:37:12 CST 2022] Pending, The CA is processing your order, please just wait. (6/30)
  72. [Wed Aug 31 17:37:12 CST 2022] sleep 2 secs to verify again
  73. [Wed Aug 31 17:37:15 CST 2022] checking
  74. [Wed Aug 31 17:37:15 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  75. [Wed Aug 31 17:37:15 CST 2022] payload
  76. [Wed Aug 31 17:37:15 CST 2022] POST
  77. [Wed Aug 31 17:37:15 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  78. [Wed Aug 31 17:37:15 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  79. [Wed Aug 31 17:37:16 CST 2022] _ret='0'
  80. [Wed Aug 31 17:37:16 CST 2022] code='200'
  81. [Wed Aug 31 17:37:16 CST 2022] Pending, The CA is processing your order, please just wait. (7/30)
  82. [Wed Aug 31 17:37:16 CST 2022] sleep 2 secs to verify again
  83. [Wed Aug 31 17:37:19 CST 2022] checking
  84. [Wed Aug 31 17:37:19 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  85. [Wed Aug 31 17:37:19 CST 2022] payload
  86. [Wed Aug 31 17:37:19 CST 2022] POST
  87. [Wed Aug 31 17:37:19 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  88. [Wed Aug 31 17:37:19 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  89. [Wed Aug 31 17:37:20 CST 2022] _ret='0'
  90. [Wed Aug 31 17:37:20 CST 2022] code='200'
  91. [Wed Aug 31 17:37:20 CST 2022] wenda.snsnz.com:Verify error:DNS problem: query timed out looking up A for wenda.snsnz.com; DNS problem: query timed out looking up AAAA for wenda.snsnz.com
  92. [Wed Aug 31 17:37:20 CST 2022] pid
  93. [Wed Aug 31 17:37:20 CST 2022] No need to restore nginx, skip.
  94. [Wed Aug 31 17:37:20 CST 2022] _clearupdns
  95. [Wed Aug 31 17:37:20 CST 2022] dns_entries
  96. [Wed Aug 31 17:37:20 CST 2022] skip dns.
  97. [Wed Aug 31 17:37:20 CST 2022] _on_issue_err
  98. [Wed Aug 31 17:37:20 CST 2022] Please check log file for more details: /usr/local/acme.sh/acme.sh.log
  99. [Wed Aug 31 17:37:20 CST 2022] url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  100. [Wed Aug 31 17:37:20 CST 2022] payload='{}'
  101. [Wed Aug 31 17:37:20 CST 2022] POST
  102. [Wed Aug 31 17:37:20 CST 2022] _post_url='https://acme-v02.api.letsencrypt.org/acme/chall-v3/148133227317/ByMtKg'
  103. [Wed Aug 31 17:37:20 CST 2022] _CURL='curl --silent --dump-header /usr/local/acme.sh/http.header  -L  -g '
  104. [Wed Aug 31 17:37:22 CST 2022] _ret='0'
  105. [Wed Aug 31 17:37:22 CST 2022] code='400'
复制代码




Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2022-8-31 20:34:12 | 显示全部楼层

caiheqing 发表于 2022-8-31 09:07
谢谢军哥的回复,我把acme.sh.log代码贴上,麻烦军哥帮我看看,谢谢。

你这个301的设置就有问题,301的设置 https://lnmp.org 官网上有教程,可以用关键词搜索:301
如果网站目录、配置文件什么的没改动的话应该就可以续期

军哥运维代购:http://shop63846532.taobao.com/

发表于 2022-8-31 20:34:39 | 显示全部楼层

caiheqing 发表于 2022-8-31 17:44
军哥,我换了DNS之后就出现下图这个错误:

acmd.sh.log代码如下:

你用的哪家dns?返回结果上都是超时获取不到A记录
 楼主| 发表于 2022-8-31 22:53:18 | 显示全部楼层

licess 发表于 2022-8-31 20:34
你用的哪家dns?返回结果上都是超时获取不到A记录

我用的是这家的dns:
  1. ns3.diymysite.com
  2. ns4.diymysite.com
复制代码

或者军哥推荐一下哪个DNS记录,我试试
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2022-8-31 23:34:54 | 显示全部楼层

licess 发表于 2022-8-31 20:34
你这个301的设置就有问题,301的设置 https://lnmp.org 官网上有教程,可以用关键词搜索:301
如果网站目 ...

我就是按你官网设置的,我把代码贴一下:
  1. server
  2.     {
  3.         listen 80;
  4.         #listen [::]:80;
  5.         server_name wenda.snsnz.com ;
  6.         return 301 https://wenda.snsnz.com$request_uri;
  7.         index index.php;
  8.         root  /home/wwwroot/wenda.snsnz.com/public;

  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 proxy-pass-php.conf;

  13.         location ~ .*\.(js|css)?$
  14.         {
  15.             expires      12h;
  16.         }

  17.         location ~ /.well-known {
  18.             allow all;
  19.         }

  20.         location ~ /\.
  21.         {
  22.             deny all;
  23.         }

  24.         access_log  /home/wwwlogs/wenda.snsnz.com.log;
  25.     }
复制代码
我如果在location ~ /.well-known {allow all;}下面加上这个代码就会报错,显示有重复的location,不知道什么原因
  1. location / {
  2. return 301 https://$host$request_uri;
  3. }
复制代码




Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2022-9-1 13:20:47 | 显示全部楼层

licess 发表于 2022-8-30 20:05
没日志的话,无法肯定确定,截图上是验证文件404,404有可能网站更改过目录或配置文件导致的,如果套了cdn ...

军哥,我现在用DNSPOD解析,现在我按照命令直接续签证书显示下面,怎么解决?


军哥运维代购:http://shop63846532.taobao.com/

发表于 2022-9-1 19:31:39 | 显示全部楼层



caiheqing 发表于 2022-8-31 23:34
我就是按你官网设置的,我把代码贴一下:
我如果在location ~ /.well-known {allow all;}下面加上这个代 ...

你说前面我问过你几次是否改动过网站目录、配置文件!!!
root  /home/wwwroot/wenda.snsnz.com/public;

你这明显和日志中是不一样的目录,目录更改了肯定就无法续期
发表于 2022-9-1 19:32:06 | 显示全部楼层

caiheqing 发表于 2022-9-1 13:20
军哥,我现在用DNSPOD解析,现在我按照命令直接续签证书显示下面,怎么解决?

截图上提示你用的dns手动模式这种模式无法自动续期
你要用dns api方式官网上有详细的教程,删除 /usr/local/nginx/conf/ssl/域名 目录后重新生成
 楼主| 发表于 2022-9-1 23:47:09 | 显示全部楼层

licess 发表于 2022-9-1 19:32
截图上提示你用的dns手动模式这种模式无法自动续期
你要用dns api方式官网上有详细的教程,删除 /usr/loc ...

谢谢军哥,辛苦了!我好像搞明白了,再咨询一个问题,为什么在301里面我加一个location{return 301 https://$host$request_uri}就报错,nginx -t就显示重复多余的location段,代码如下:
  1. server
  2.     {
  3. /*此处省略。。。*/
  4.         location ~ .*\.(js|css)?$
  5.         {
  6.             expires      12h;
  7.         }

  8.         location ~ /.well-known {
  9.             allow all;
  10.         }

  11.         location ~ /\.
  12.         {
  13.             deny all;
  14.         }

  15.        location / {
  16.             return 301 https://$host$request_uri;
  17.         }
  18.     }
复制代码
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2022-9-2 19:32:49 | 显示全部楼层
caiheqing 发表于 2022-9-1 23:47
谢谢军哥,辛苦了!我好像搞明白了,再咨询一个问题,为什么在301里面我加一个location{return 301 https ...

include proxy-pass-php.conf; 这一行注释掉
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-25 12:18 , Processed in 0.032428 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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