Menu

Python error when trying to install ssl certificate

Help
2021-01-28
2021-01-28
  • Michael VanDeMar

    I am trying to set up a mail server for a client using webmin, but when I try and install an ssl certificate using Let's Encrypt I get the following Python error:

    Requesting a new certificate for mailserver.mydomain.com, using the website directory /var/www/html ..
    .. request failed : Failed to request certificate :

    Traceback (most recent call last):
      File "/usr/libexec/webmin/webmin/acme_tiny.py", line 198, in <module>
        main(sys.argv[1:])
      File "/usr/libexec/webmin/webmin/acme_tiny.py", line 194, in main
        signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca, disable_check=args.disable_check, directory_url=args.directory_url, contact=args.contact)
      File "/usr/libexec/webmin/webmin/acme_tiny.py", line 121, in get_crt
        order, _, order_headers = _send_signed_request(directory['newOrder'], order_payload, "Error creating new order")
      File "/usr/libexec/webmin/webmin/acme_tiny.py", line 52, in _send_signed_request
        new_nonce = _do_request(directory['newNonce'])[2]['Replay-Nonce']
      File "/usr/libexec/webmin/webmin/acme_tiny.py", line 46, in _do_request
        raise ValueError("{0}:\nUrl: {1}\nData: {2}\nResponse Code: {3}\nResponse: {4}".format(err_msg, url, data, code, resp_data))
    ValueError: Error:
    Url: https://acme-v02.api.letsencrypt.org/acme/new-nonce
    Data: None
    Response Code: None
    Response: <urlopen error EOF occurred in violation of protocol (_ssl.c:618)>
    

    Any idea what may be going on here, or how to get around it? Thanks.

    -Michael

     
  • Michael VanDeMar

    Update: The instructions I saw did not indicate that certbot needed to be installed. I installed that, which updated a bunch of python, and I was able to successfully install the certificate afterwards, so, never mind. :)

    -Michael

     

Log in to post a comment.

MongoDB Logo MongoDB