Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Lazy
- public ClientAndServer mockServer() {
- ConfigurationProperties.deleteGeneratedKeyStoreOnExit(true);
- ClientAndServer mockServer = ClientAndServer.startClientAndServer(7071);
- HttpsURLConnection
- .setDefaultSSLSocketFactory(KeyStoreFactory.keyStoreFactory().sslContext().getSocketFactory());
- return mockServer;
- }
- <http:tlsClientParameters disableCNCheck="true" secureSocketProtocol="TLSv1.2">
- <sec:keyManagers keyPassword="#{environment['bridge.conduit.keystore.password']}">
- <sec:keyStore type="${bridge.conduit.keystore.type}"
- password="#{environment['bridge.conduit.keystore.password']}"
- file="${bridge.conduit.keystore.location}" />
- </sec:keyManagers>
- </http:tlsClientParameters>
- <http:client Connection="close" ConnectionTimeout="${bridge.conduit.connectionTimeout:30000}"
- ReceiveTimeout="${bridge.conduit.receiveTimeout:120000}" ProxyServer="${bridge.conduit.proxy.address:}"
- ProxyServerPort="${bridge.conduit.proxy.port:}" ProxyServerType="HTTP" AutoRedirect="true" AllowChunking="false" />
- <http:proxyAuthorization>
- <sec:UserName>"${bridge.conduit.proxy.username:}"</sec:UserName>
- <sec:Password>"${bridge.conduit.proxy.password:}"</sec:Password>
- </http:proxyAuthorization>
- </http:conduit>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement