li5414 发表于 2018-4-4 13:42:16

lnmpa 1.5 ssl添加失败

Starting create SSL Certificate use Let's Encrypt...
Registering account

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}
Please check log file for more details: /usr/local/acme.sh/acme.sh.log
Let's Encrypt SSL Certificate create failed!


日志:
ed Apr4 11:56:52 CST 2018] Using config home:/usr/local/acme.sh
DOMAIN_PATH='/usr/local/nginx/conf/ssl/unigamestudio.com'
GET
url='https://acme-v02.api.letsencrypt.org/directory'
timeout=
ret='0'
ACME_NEW_AUTHZ
ACME_VERSION='2'
Check for domain='unigamestudio.com'
_currentRoot='dns_dp'
Use default length 2048
Use length 2048
Registering account
_ret='0'
_ret='0'
code='415'
_on_issue_err
Using config home:/usr/local/acme.sh
DOMAIN_PATH='/usr/local/nginx/conf/ssl/unigamestudio.com'
ret='0'
ACME_VERSION='2'
_currentRoot='dns_dp'
Check for domain='*.unigamestudio.com'
_currentRoot='dns_dp'
RSA key
Registering account
_ret='0'
_ret='0'
code='415'
_on_issue_err
Using config home:/usr/local/acme.sh
DOMAIN_PATH='/usr/local/nginx/conf/ssl/unigamestudio.com'
ret='0'
ACME_VERSION='2'
_currentRoot='dns_dp'
Check for domain='*.unigamestudio.com'
_currentRoot='dns_dp'
RSA key
Registering account
_ret='0'
_ret='0'
code='415'
_on_issue_err
Using config home:/usr/local/acme.sh
DOMAIN_PATH='/usr/local/nginx/conf/ssl/unigamestudio.com'
ret='0'
ACME_VERSION='2'
Le_NextRenewTime
_on_before_issue
Le_LocalAddress
Check for domain='unigamestudio.com'
_currentRoot='dns_dp'
Check for domain='*.unigamestudio.com'
_currentRoot='dns_dp'
config file is empty, can not read CA_KEY_HASH
Using config home:/usr/local/acme.sh
_init api for server: https://acme-v02.api.letsencrypt.org/directory
RSA key
Registering account
url='https://acme-v02.api.letsencrypt.org/acme/new-acct'
payload='{"termsOfServiceAgreed": true}'
HEAD
_post_url='https://acme-v02.api.letsencrypt.org/acme/new-nonce'
_CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header-g '
_ret='0'
POST
_post_url='https://acme-v02.api.letsencrypt.org/acme/new-acct'
_CURL='curl -L --silent --dump-header /usr/local/acme.sh/http.header-g '
_ret='0'
code='415'
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}
_on_issue_err

li5414 发表于 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

licess 发表于 2018-4-4 19:02:22

. /usr/local/acme.sh/acme.sh.env
/usr/local/acme.sh/acme.sh --upgrade 后再试一下
页: [1]
查看完整版本: lnmpa 1.5 ssl添加失败