proxy config clarification request
Wednesday, September 18, 2019 at 06:52amI've a request for clarification on the proxy configuration options.
When should withHttps be used versus withHttp and what difference does it make? It isn't clear to me that it is straight forward as I've seen sample code showing withHttp (vs withHttps) being used, yet the URL passed is 'https://sandbox...'. So in theory the traffic is encrypted regardless...
ProxyConfiguration httpProxyConfiguration = ProxyConfigurationBuilder
.newProxyConfiguration()
.withHttpsHost(proxyHost)
.withHttpsPort(proxyPort)
// .withHttpHost(proxyHost)
// .withHttpPort(proxyPort)
.build();
return new EslClient(apiKey, apiUrl, allowAllSSLCertificates, httpProxyConfiguration);
Reply to: proxy config clarification request
Wednesday, September 18, 2019 at 07:49amfinal org.apache.http.impl.client.HttpClientBuilder httpClientBuilder = HttpClients.custom(); httpClientBuilder.setDefaultRequestConfig(RequestConfig requestConfig); requestConfig = RequestConfig.custom() .setProxy(new HttpHost(proxyConfiguration.getHost(), proxyConfiguration.getPort(), proxyConfiguration.getScheme())) .build();So the http vs https refers to the schema your local machine connected to your proxy server, depending on your real environment. To connect to OneSpan Sign server, it's always using HTTPS, based on TLS1.1 or later, which is not related to the proxy setting. Hope this could help! DuoReply to: proxy config clarification request
Wednesday, September 18, 2019 at 08:01am