LetsEncrypt-APP error

python
letsencrypt

#1

Hello,
i have installed the LetsEncrypt APP on my UCS 4.2.3. I have a fixed IP adress and forwarded the Port 80 and 443 to my server.
My Domain is in the config, host -A IP-ADDRESS shows my UCS. Also my Backup-DynDNS Address.

i had set the ucs with my fixed IP. bt i always get Errors, when i start the /usr/share/univention-letsencrypt/setup-letsencrypt

this is the error:

Parsing account key...
Parsing CSR...
Registering account...
Traceback (most recent call last):
  File "/usr/share/univention-letsencrypt/acme_tiny.py", line 198, in <module>
    main(sys.argv[1:])
  File "/usr/share/univention-letsencrypt/acme_tiny.py", line 194, in main
    signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca)
  File "/usr/share/univention-letsencrypt/acme_tiny.py", line 85, in get_crt
    "agreement": json.loads(urlopen(CA + "/directory").read().decode('utf8'))['meta']['terms-of-service'],
  File "/usr/share/univention-letsencrypt/acme_tiny.py", line 59, in _send_signed_request
    resp = urlopen(url, data.encode('utf8'))
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1240, in https_open
    context=self._context)
  File "/usr/lib/python2.7/urllib2.py", line 1200, in do_open
    r = h.getresponse(buffering=True)
  File "/usr/lib/python2.7/httplib.py", line 1111, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 444, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 408, in _read_status
    raise BadStatusLine(line)
httplib.BadStatusLine: ''
Setting letsencrypt/status


could anyone tell me how to fix this problem?

Thanks


#2

Hello @volker.grabbe

this error means, that the app has received an invalid HTTP status code from the Let’s Encrypt servers while trying to download the signed certificate.
I just tested the app and it currently works on my test machine, so I’d kindly ask you to re-try the setup, because I assume it was a temporary problem on Let’s Encrypt’s side.

There was also a maintenance window for Let’s Encrypt’s infrastructure on the 15th of February, so if you tried getting a certificate in the evening on that day it might be the cause for problems.

Best regards,
Valentin Heidelberger