Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy #57

Closed
ghost opened this issue Mar 6, 2018 · 2 comments
Closed

Proxy #57

ghost opened this issue Mar 6, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 6, 2018

Is it possible to use a proxy at the ACME4J Client V2

@shred
Copy link
Owner

shred commented Mar 6, 2018

acme4j uses Java's HttpURLConnection. For the time being, you can use system properties to set a global proxy:

System.setProperty("https.proxyHost", "proxy-host");
System.setProperty("https.proxyPort", "proxy-port");
System.setProperty("https.proxyUser", "user");  // if proxy requires auth
System.setProperty("https.proxyPassword", "password");

Using a Session-wide proxy is on my to-do list, but it had a low priority since nobody had asked for it until now.

@shred
Copy link
Owner

shred commented Mar 6, 2018

I have added proxy support in commit 49677d8. To use it, create a Java Proxy object and pass it to Session.setProxy(). For proxy authentication, see Java's Authenticator class.

@shred shred closed this as completed Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant