Skip to content

use of https_proxy environment in a closed environment #365

Description

@GiT-BeDa

I am deploying an HTTPS proxy in a closed environment where every request to external resources must go through an HTTP proxy. I have set the http_proxy and https_proxy environment variables and configured Docker to use these (through the systemd file and config.json).

I can successfully deploy my stack, but it appears that HTTPS Portal does not use the proxy to connect to letsencrypt.org; instead, it attempts a direct connection, which fails.
Is there a way to make HTTPS Portal connect to Let's Encrypt through the configured proxy?

Signing certificates from https://acme-v02.api.letsencrypt.org/directory ...
Parsing account key...
Parsing CSR...
Found domains: webmail.example.com
Getting directory...
Traceback (most recent call last):
File "/usr/bin/acme_tiny", line 199, in <module>
main(sys.argv[1:])
File "/usr/bin/acme_tiny", line 195, 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, check_port=args.check_port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/acme_tiny", line 105, in get_crt
directory, _, _ = _do_request(directory_url, err_msg="Error getting directory")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/acme_tiny", 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 getting directory:
Url: https://acme-v02.api.letsencrypt.org/directory
Data: None
Response Code: None
Response: <urlopen error [Errno 101] Network is unreachable>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions