mirror of https://github.com/shred/acme4j
Fix proxy system properties in documentation
parent
5922189be4
commit
a949da9927
|
@ -71,7 +71,7 @@ Even if it is tempting to do so, you should not invoke `agreeToTermsOfService()`
|
|||
|
||||
If the CA changes the terms of service and requires an explicit agreement to the new terms, an `AcmeUserActionRequiredException` is thrown. Its `getInstance()` method returns the URL of a document that gives instructions about how to agree to the new terms of service. There is no way to automatize this process.
|
||||
|
||||
## Find out Your Account's Location URL
|
||||
## Find out your Account's Location URL
|
||||
|
||||
If you only have your account's `KeyPair`, you can use the `AccountBuilder` to find out the location `URL` of your account.
|
||||
|
||||
|
|
|
@ -39,6 +39,6 @@ By default, the system's default locale is used.
|
|||
|
||||
_acme4j_ uses a standard `HttpURLConnection` for HTTP connections.
|
||||
|
||||
If a proxy must be used for internet connections, you can set a `Proxy` instance by invoking `Session.setProxy()`. An alternative is to use the system properties `http.proxyHost` and `http.proxyPort` to globally set a proxy for the Java process.
|
||||
If a proxy must be used for internet connections, you can set a `Proxy` instance by invoking `Session.setProxy()`. An alternative is to use the system properties `https.proxyHost` and `https.proxyPort` to globally set a proxy for the Java process.
|
||||
|
||||
If the proxy needs authentication, you need to set a default `Authenticator`. Be careful: Most code snippets I have found in the internet will send out the proxy credentials to anyone who is asking. See [this blog article](http://rolandtapken.de/blog/2012-04/java-process-httpproxyuser-and-httpproxypassword) for a good way to implement a proxy `Authenticator`.
|
||||
|
|
Loading…
Reference in New Issue