{
“type”: “urn:acme:error:malformed”,
“detail”: “Error creating new authz :: Invalid character in DNS name”,
“status”: 400
}
2017-10-12 16:22:46,874:DEBUG:acme.client:Storing nonce: USM3aKtv3-vaczCZHoAP27V7B_IgUMoIaVUTWeHIQws
2017-10-12 16:22:46,874:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File “/usr/bin/certbot”, line 11, in
load_entry_point(‘certbot==0.17.0’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python2.7/dist-packages/certbot/main.py”, line 753, in main
return config.func(config, plugins)
File “/usr/lib/python2.7/dist-packages/certbot/main.py”, line 606, in run
certname, lineage)
File “/usr/lib/python2.7/dist-packages/certbot/main.py”, line 82, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File “/usr/lib/python2.7/dist-packages/certbot/client.py”, line 357, in obtain_and_enroll_certificate
certr, chain, key, _ = self.obtain_certificate(domains)
File “/usr/lib/python2.7/dist-packages/certbot/client.py”, line 318, in obtain_certificate
self.config.allow_subset_of_names)
File “/usr/lib/python2.7/dist-packages/certbot/auth_handler.py”, line 66, in get_authorizations
self.authzr[domain] = self.acme.request_domain_challenges(domain)
File “/usr/lib/python2.7/dist-packages/acme/client.py”, line 212, in request_domain_challenges
typ=messages.IDENTIFIER_FQDN, value=domain), new_authzr_uri)
File “/usr/lib/python2.7/dist-packages/acme/client.py”, line 191, in request_challenges
response = self.net.post(self.directory.new_authz, new_authz)
File “/usr/lib/python2.7/dist-packages/acme/client.py”, line 682, in post
return self._post_once(*args, **kwargs)
File “/usr/lib/python2.7/dist-packages/acme/client.py”, line 695, in _post_once
return self._check_response(response, content_type=content_type)
File “/usr/lib/python2.7/dist-packages/acme/client.py”, line 582, 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
Can you check exactly what command you ran? Hyphens are valid.
Certain names, such as “example-.com”, may be invalid.
Are you sure the character was an ordinary hyphen? Not something like – (U+2013 EN DASH)?
Or maybe there was some invisible whitespace or something?
certbot --apache -d education-dev@pasco.com -d www.education-dev@pasco.com
originally did cut and paste, then hand typed the command both failed.
Tried “” around the education-dev@pasco.com and www.education-dev@pasco.com, it too failed
I believe the issue is the @ sign, as I’m pretty sure that’s not a legal character in domain names. What is your actual domain?
Thanks that was it.
I did a sudo certbot --apache -d education-dev@pasco.com before and did not get an error message
I then carried this forward with the certbot command
Went back and correct the silly error and now we are running