Fix proxy system properties in documentation

pull/81/head
Richard Körber 2018-08-22 22:32:22 +02:00
parent 5922189be4
commit a949da9927
No known key found for this signature in database
GPG Key ID: AAB9FD19C78AA3E0
2 changed files with 2 additions and 2 deletions

View File

@ -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. 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. If you only have your account's `KeyPair`, you can use the `AccountBuilder` to find out the location `URL` of your account.

View File

@ -39,6 +39,6 @@ By default, the system's default locale is used.
_acme4j_ uses a standard `HttpURLConnection` for HTTP connections. _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`. 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`.