打印

lnmpa 1.5 ssl添加失败

lnmpa 1.5 ssl添加失败

Starting create SSL Certificate use Let's Encrypt...
[Wed Apr  4 13:39:27 CST 2018] Registering account

[Wed Apr  4 13:39:29 CST 2018] Register account Error: {"type":"urn:ietf:params:acme:error:malformed","detail":"Invalid Content-Type header on POST. Content-Type must be \"application/jose+json\"","status": 415}
[Wed Apr  4 13:39:29 CST 2018] Please check log file for more details: /usr/local/acme.sh/acme.sh.log
Let's Encrypt SSL Certificate create failed!


日志:
ed Apr  4 11:56:52 CST 2018] Using config home:/usr/local/acme.sh
[Wed Apr  4 11:56:52 CST 2018] DOMAIN_PATH='/usr/local/nginx/conf/ssl/unigamestudio.com'
[Wed Apr  4 11:56:52 CST 2018] GET
[Wed Apr  4 11:56:52 CST 2018] url='https://acme-v02.api.letsencrypt.org/directory'
[Wed Apr  4 11:56:52 CST 2018] timeout=
[Wed Apr  4 11:56:53 CST 2018] ret='0'
[Wed Apr  4 11:56:53 CST 2018] ACME_NEW_AUTHZ
[Wed Apr  4 11:56:53 CST 2018] ACME_VERSION='2'
[Wed Apr  4 11:56:53 CST 2018] Check for domain='unigamestudio.com'
[Wed Apr  4 11:56:53 CST 2018] _currentRoot='dns_dp'
[Wed Apr  4 11:56:53 CST 2018] Use default length 2048
[Wed Apr  4 11:56:53 CST 2018] Use length 2048
[Wed Apr  4 11:56:53 CST 2018] Registering account
[Wed Apr  4 11:56:54 CST 2018] _ret='0'
[Wed Apr  4 11:56:56 CST 2018] _ret='0'
[Wed Apr  4 11:56:56 CST 2018] code='415'
[Wed Apr  4 11:56:56 CST 2018] _on_issue_err
[Wed Apr  4 11:59:53 CST 2018] Using config home:/usr/local/acme.sh
[Wed Apr  4 11:59:53 CST 2018] DOMAIN_PATH='/usr/local/nginx/conf/ssl/unigamestudio.com'
[Wed Apr  4 11:59:54 CST 2018] ret='0'
[Wed Apr  4 11:59:54 CST 2018] ACME_VERSION='2'
[Wed Apr  4 11:59:54 CST 2018] _currentRoot='dns_dp'
[Wed Apr  4 11:59:54 CST 2018] Check for domain='*.unigamestudio.com'
[Wed Apr  4 11:59:54 CST 2018] _currentRoot='dns_dp'
[Wed Apr  4 11:59:54 CST 2018] RSA key
[Wed Apr  4 11:59:54 CST 2018] Registering account
[Wed Apr  4 11:59:54 CST 2018] _ret='0'
[Wed Apr  4 11:59:56 CST 2018] _ret='0'
[Wed Apr  4 11:59:56 CST 2018] code='415'
[Wed Apr  4 11:59:56 CST 2018] _on_issue_err
[Wed Apr  4 13:25:30 CST 2018] Using config home:/usr/local/acme.sh
[Wed Apr  4 13:25:30 CST 2018] DOMAIN_PATH='/usr/local/nginx/conf/ssl/unigamestudio.com'
[Wed Apr  4 13:25:31 CST 2018] ret='0'
[Wed Apr  4 13:25:31 CST 2018] ACME_VERSION='2'
[Wed Apr  4 13:25:31 CST 2018] _currentRoot='dns_dp'
[Wed Apr  4 13:25:31 CST 2018] Check for domain='*.unigamestudio.com'
[Wed Apr  4 13:25:31 CST 2018] _currentRoot='dns_dp'
[Wed Apr  4 13:25:31 CST 2018] RSA key
[Wed Apr  4 13:25:31 CST 2018] Registering account
[Wed Apr  4 13:25:32 CST 2018] _ret='0'
[Wed Apr  4 13:25:33 CST 2018] _ret='0'
[Wed Apr  4 13:25:33 CST 2018] code='415'
[Wed Apr  4 13:25:33 CST 2018] _on_issue_err
[Wed Apr  4 13:39:26 CST 2018] Using config home:/usr/local/acme.sh
[Wed Apr  4 13:39:26 CST 2018] DOMAIN_PATH='/usr/local/nginx/conf/ssl/unigamestudio.com'
[Wed Apr  4 13:39:27 CST 2018] ret='0'
[Wed Apr  4 13:39:27 CST 2018] ACME_VERSION='2'
[Wed Apr  4 13:39:27 CST 2018] Le_NextRenewTime
[Wed Apr  4 13:39:27 CST 2018] _on_before_issue
[Wed Apr  4 13:39:27 CST 2018] Le_LocalAddress
[Wed Apr  4 13:39:27 CST 2018] Check for domain='unigamestudio.com'
[Wed Apr  4 13:39:27 CST 2018] _currentRoot='dns_dp'
[Wed Apr  4 13:39:27 CST 2018] Check for domain='*.unigamestudio.com'
[Wed Apr  4 13:39:27 CST 2018] _currentRoot='dns_dp'
[Wed Apr  4 13:39:27 CST 2018] config file is empty, can not read CA_KEY_HASH
[Wed Apr  4 13:39:27 CST 2018] Using config home:/usr/local/acme.sh
[Wed Apr  4 13:39:27 CST 2018] _init api for server: https://acme-v02.api.letsencrypt.org/directory
[Wed Apr  4 13:39:27 CST 2018] RSA key
[Wed Apr  4 13:39:27 CST 2018] Registering account
[Wed Apr  4 13:39:27 CST 2018] url='https://acme-v02.api.letsencrypt.org/acme/new-acct'
[Wed Apr  4 13:39:27 CST 2018] payload='{"termsOfServiceAgreed": true}'
[Wed Apr  4 13:39:27 CST 2018] HEAD
[Wed Apr  4 13:39:27 CST 2018] _post_url='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
[Wed Apr  4 13:39:27 CST 2018] _CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header  -g '
[Wed Apr  4 13:39:28 CST 2018] _ret='0'
[Wed Apr  4 13:39:28 CST 2018] POST
[Wed Apr  4 13:39:28 CST 2018] _post_url='https://acme-v02.api.letsencrypt.org/acme/new-acct'
[Wed Apr  4 13:39:28 CST 2018] _CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header  -g '
[Wed Apr  4 13:39:29 CST 2018] _ret='0'
[Wed Apr  4 13:39:29 CST 2018] code='415'
[Wed Apr  4 13:39:29 CST 2018] Register account Error: {"type":"urn:ietf:params:acme:error:malformed","detail":"Invalid Content-Type header on POST. Content-Type must be \"application/jose+json\"","status": 415}
[Wed Apr  4 13:39:29 CST 2018] _on_issue_err

TOP

这是/usr/local/acme.sh/http.header 里面的内容

HTTP/1.1 100 Continue
Expires: Wed, 04 Apr 2018 05:53:23 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache

HTTP/1.1 415 Unsupported Media Type
Server: nginx
Content-Type: application/problem+json
Content-Length: 168
Replay-Nonce: vs7bI4G7G3fMgaJ5jnP6pnGlNdQibD0fqbSUE_A8j5w
Expires: Wed, 04 Apr 2018 05:53:23 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Wed, 04 Apr 2018 05:53:23 GMT
Connection: close

貌似还是有问题的? Content-Type: application/problem+json

TOP

. /usr/local/acme.sh/acme.sh.env
/usr/local/acme.sh/acme.sh --upgrade 后再试一下

LNMP付费问题排查/LNMP技术支持/Paypal信用卡代付/代购VPS,域名,软件等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 要求反馈问题!

TOP