Skip to content

Sign failed with HTTP/1.1 400 Bad Request #111

@backbohne

Description

@backbohne

Hi,

I'm using your script without any issue under Debian, but it fails under Cloudlinux (CentOS).
Not sure what is the problem here?

> le issue dns-deep web01.mydomain.ch
...
Verify finished, start to sign.
url=https://acme-v01.api.letsencrypt.org/acme/new-cert
payload={"resource": "new-cert", "csr": "..."}
RSA key
pub_exp=010001
e=AQAB
jwk={"e": "AQAB", "kty": "RSA", "n": "..."}
HEADER={"alg": "RS256", "jwk": {"e": "AQAB", "kty": "RSA", "n": "..."}}
payload64=...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   263    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
nonce=...
protected={"nonce": "...", "alg": "RS256", "jwk": {"e": "AQAB", "kty": "RSA", "n": "..."}}
protected64=...
sig=...
body={"header": {"alg": "RS256", "jwk": {"e": "AQAB", "kty": "RSA", "n": "..."}}, "protected": "...", "payload": "...", "signature": "..."}
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
102  2652    0    98  102  2554    125   3269 --:--:-- --:--:-- --:--:--  3607
responseHeaders=HTTP/1.1 100 Continue
Expires: Tue, 29 Mar 2016 14:34:52 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache

HTTP/1.1 400 Bad Request
Server: nginx
Content-Type: application/problem+json
Content-Length: 98
Replay-Nonce: 3XnsQBBg4Oc32DV4F7GejkWFwM45Ty0PheLOw965uUA
Expires: Tue, 29 Mar 2016 14:34:52 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 29 Mar 2016 14:34:52 GMT
Connection: close

response=curl exists=0
eyJ0eXBlIjoidXJuOmFjbWU6ZXJyb3I6bWFsZm9ybWVkIiwiZGV0YWlsIjoiRXJyb3IgdW5tYXJzaGFsaW5nIGNlcnRpZmljYXRlIHJlcXVlc3QiLCJzdGF0dXMiOjQwMH0=
code=400
OK
/opt/deep-le/web01.mydomain.ch/web01.mydomain.ch.conf:9:Le_LinkCert=
Sign failed: 
> cat http.header                                                                                                           
HTTP/1.1 100 Continue
Expires: Tue, 29 Mar 2016 14:34:52 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache

HTTP/1.1 400 Bad Request
Server: nginx
Content-Type: application/problem+json
Content-Length: 98
Replay-Nonce: 3XnsQBBg4Oc32DV4F7GejkWFwM45Ty0PheLOw965uUA
Expires: Tue, 29 Mar 2016 14:34:52 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 29 Mar 2016 14:34:52 GMT
Connection: close
> curl -V                                                                                         
curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp 
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 

Regrads
Frank

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions