When running ./letsencrypt-auto --apache I get the following error:
An unexpected error occurred:
The request message was malformed :: Error creating new authz :: Invalid character in DNS name
Please see the logfiles in /var/log/letsencrypt for more details.
In the log file I get
2015-12-04 16:17:02,870:DEBUG:root:Requesting fresh nonce
2015-12-04 16:17:02,870:DEBUG:root:Sending HEAD request to https://acme-v01.api.letsencrypt.org/acme/new-authz. args: (), kwargs: {}
2015-12-04 16:17:02,870:INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
2015-12-04 16:17:03,077:DEBUG:requests.packages.urllib3.connectionpool:"HEAD /acme/new-authz HTTP/1.1" 405 0
2015-12-04 16:17:03,077:DEBUG:root:Received <Response [405]>. Headers: {'Content-Length': '0', 'Pragma': 'no-cache', 'Expires': 'Fri, 04 Dec 2015 16:17:03 GMT', 'Server': 'nginx', 'Connection': 'keep-alive', 'Allow': 'POST', 'Cache-Control': 'max-age=0, no-cache, no-store', 'Date': 'Fri, 04 Dec 2015 16:17:03 GMT', 'Content-Type': 'application/problem+json', 'Replay-Nonce': 'OB5r0S3f-FAehHTNzeKVrSiCsnL3OEaVErKmKRgi0Bs'}. Content: ''
2015-12-04 16:17:03,078:DEBUG:acme.client:Storing nonce: '8\x1ek\xd1-\xdf\xf8P\x1e\x84t\xcd\xcd\xe2\x95\xad(\x82\xb2r\xf78F\x95\x12\xb2\xa6)\x18"\xd0\x1b'
2015-12-04 16:17:03,078:DEBUG:acme.jose.json_util:Omitted empty fields: expires=None, challenges=None, status=None, combinations=None
2015-12-04 16:17:03,078:DEBUG:acme.client:Serialized JSON: {"identifier": {"type": "dns", "value": "*.bedstevenner.org"}, "resource": "new-authz"}
2015-12-04 16:17:03,079:DEBUG:acme.jose.json_util:Omitted empty fields: x5c=(), crit=(), kid=None, jwk=None, x5t=None, x5tS256=None, cty=None, x5u=None, typ=None, alg=None, jku=None
2015-12-04 16:17:03,080:DEBUG:acme.jose.json_util:Omitted empty fields: x5c=(), crit=(), kid=None, nonce=None, x5tS256=None, cty=None, x5t=None, x5u=None, typ=None, jku=None
2015-12-04 16:17:03,080:DEBUG:root:Sending POST request to https://acme-v01.api.letsencrypt.org/acme/new-authz. args: (), kwargs: {'data': '{"header": {"alg": "RS256", "jwk": {"e": "AQAB", "kty": "RSA", "n": "ush0ZK3iAI7zpQPkJlCDDnJtP9xBqAFJyt_6an256Gqva_4N6LRlhskB6WwykCBhVV4AjWVabk9GqkQfphXfKoVA86bdw8uUOG8u9sp1Du2PD5gCQ9AvlUHilduGKERIiJZWRIRorSUMGX1rDOTYdplKqKGZLjqHt-UcupPxGIGXtmVC6Wk5UFvJiWhISn9p89Fr67_ADBjCbeSxRGhR3RSDbZfKzt83Rp_vIfraa024ytE2yqOihf6AjWmUyYpqvxwRoLXSZm5kfNFlX0KnmS2E7A-3NZt5r3CRyF62reo9LPWABm-DzCTXVqMq79K76uTf4H_FPARED7H_qMEh0w"}}, "protected": "eyJub25jZSI6ICJPQjVyMFMzZi1GQWVoSFROemVLVnJTaUNzbkwzT0VhVkVyS21LUmdpMEJzIn0", "payload": "eyJpZGVudGlmaWVyIjogeyJ0eXBlIjogImRucyIsICJ2YWx1ZSI6ICIqLmJlZHN0ZXZlbm5lci5vcmcifSwgInJlc291cmNlIjogIm5ldy1hdXRoeiJ9", "signature": "k3Cbixvz903286fckHfX538LgrTGGS9kKetPA3D7rVPzTCp_R7Mxd1cibk1u8NA9k-PNl_eqYKjevcHkyVNRQ2x0G8wWPDZj9q_xKETyFjdGryOLTk6i59GdypA9unJ-uUYD55LIrLMT9270Db8pLaJ8F0snHQaac9QKksHU5IG8LnO4DRUCeu9otP4JZVTArh35Ti_DbGKNBn6Q-zTqu1tGmloBbSMwu-U7k6qN_b3CsiejPshfmU3A-Dsh63datpARHuv5p98bnE2z6nylVP0Fo1qjGImZbQII2xbXBaeZyYDcEQ4GwB_RWcYlywYhJLrX56VEma3zB3rc1e6oBQ"}'}
2015-12-04 16:17:03,080:INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
2015-12-04 16:17:03,307:DEBUG:requests.packages.urllib3.connectionpool:"POST /acme/new-authz HTTP/1.1" 400 117
2015-12-04 16:17:03,308:DEBUG:root:Received <Response [400]>. Headers: {'Content-Length': '117', 'Expires': 'Fri, 04 Dec 2015 16:17:03 GMT', 'Server': 'nginx', 'Connection': 'close', 'Pragma': 'no-cache', 'Cache-Control': 'max-age=0, no-cache, no-store', 'Date': 'Fri, 04 Dec 2015 16:17:03 GMT', 'Content-Type': 'application/problem+json', 'Replay-Nonce': 'pORzYwXHpNa207th-ko4SLFNmWbcx5ThPmk70Zq_9YM'}. Content: '{"type":"urn:acme:error:malformed","detail":"Error creating new authz :: Invalid character in DNS name","status":400}'
2015-12-04 16:17:03,309:DEBUG:acme.client:Storing nonce: '\xa4\xe4sc\x05\xc7\xa4\xd6\xb6\xd3\xbba\xfaJ8H\xb1M\x99f\xdc\xc7\x94\xe1>i;\xd1\x9a\xbf\xf5\x83'
2015-12-04 16:17:03,309:DEBUG:acme.client:Received response <Response [400]> (headers: {'Content-Length': '117', 'Expires': 'Fri, 04 Dec 2015 16:17:03 GMT', 'Server': 'nginx', 'Connection': 'close', 'Pragma': 'no-cache', 'Cache-Control': 'max-age=0, no-cache, no-store', 'Date': 'Fri, 04 Dec 2015 16:17:03 GMT', 'Content-Type': 'application/problem+json', 'Replay-Nonce': 'pORzYwXHpNa207th-ko4SLFNmWbcx5ThPmk70Zq_9YM'}): '{"type":"urn:acme:error:malformed","detail":"Error creating new authz :: Invalid character in DNS name","status":400}'
2015-12-04 16:17:03,309:DEBUG:letsencrypt.cli:Exiting abnormally:
Traceback (most recent call last):
File "/home/jeppe/.local/share/letsencrypt/bin/letsencrypt", line 11, in <module>
sys.exit(main())
File "/home/jeppe/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 1283, in main
return args.func(args, config, plugins)
File "/home/jeppe/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 470, in run
lineage = _auth_from_domains(le_client, config, domains)
File "/home/jeppe/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 336, in _auth_from_domains
lineage = le_client.obtain_and_enroll_certificate(domains)
File "/home/jeppe/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/client.py", line 283, in obtain_and_enroll_certificate
certr, chain, key, _ = self.obtain_certificate(domains)
File "/home/jeppe/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/client.py", line 266, in obtain_certificate
return self._obtain_certificate(domains, csr) + (key, csr)
File "/home/jeppe/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/client.py", line 224, in _obtain_certificate
authzr = self.auth_handler.get_authorizations(domains)
File "/home/jeppe/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/auth_handler.py", line 74, in get_authorizations
domain, self.account.regr.new_authzr_uri)
File "/home/jeppe/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py", line 215, in request_domain_challenges
typ=messages.IDENTIFIER_FQDN, value=domain), new_authz_uri)
File "/home/jeppe/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py", line 195, in request_challenges
response = self.net.post(new_authzr_uri, new_authz)
File "/home/jeppe/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py", line 634, in post
return self._check_response(response, content_type=content_type)
File "/home/jeppe/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py", line 550, in _check_response
raise messages.Error.from_json(jobj)
Error: urn:acme:error:malformed :: The request message was malformed :: Error creating new authz :: Invalid character in DNS name
It worked once, but since then it hasnât worked.
Hope someone can help me.
Thanks.
Jeppe