VPS侦探论坛

 找回密码
 注册
搜索
查看: 1083|回复: 2

lnmpa 1.5 ssl添加失败

[复制链接]
发表于 2018-4-4 13:42:16 | 显示全部楼层 |阅读模式

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
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2018-4-4 13:56:00 | 显示全部楼层

这是/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
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-4-4 19:02:22 | 显示全部楼层



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

美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2019-6-17 05:51 , Processed in 0.074921 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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