cesarjv commented on issue #5907:
URL: https://github.com/apache/camel-quarkus/issues/5907#issuecomment-2013979228
With these classes I send the application
The ConfigureSSL class is used to configure the call using SSL:
```
@Slf4j
@SuppressWarnings({})
@ApplicationScoped
public class ConfigureSsl {
private final String password =
ConfigProvider.getConfig().getValue("client.ssl.password", String.class);
private final String resource =
ConfigProvider.getConfig().getValue("client.ssl.resource", String.class);
public Endpoint setupSSLContext(CamelContext camelContext, String url)
throws Exception {
KeyStoreParameters keyStoreParameters = new
KeyStoreParameters();
keyStoreParameters.setResource(resource);
keyStoreParameters.setPassword(password);
KeyManagersParameters keyManagersParameters = new
KeyManagersParameters();
keyManagersParameters.setKeyStore(keyStoreParameters);
keyManagersParameters.setKeyPassword(password);
TrustManagersParameters trustManagersParameters = new
TrustManagersParameters();
trustManagersParameters.setKeyStore(keyStoreParameters);
SSLContextParameters sslContextParameters = new
SSLContextParameters();
sslContextParameters.setKeyManagers(keyManagersParameters);
sslContextParameters.setTrustManagers(trustManagersParameters);
HttpComponent httpComponent =
camelContext.getComponent("https", HttpComponent.class);
httpComponent.setSslContextParameters(sslContextParameters);
httpComponent.setX509HostnameVerifier(new
AllowAllHostnameVerifier());
return httpComponent.createEndpoint(url);
}
}
```
The udbUrl variable refers to the IP variable that is called and is found in
the properties:
ResRoute
```
@ConfigProperty(name = "client.url.udb")
String urlUDB;
```
application.properties
`client.url.udb=${UBICATION_URL_UDB:https://10.160.12.181:8001?bridgeEndpoint=false&?throwExceptionOnFailure=false}`
No, the SOAP external IP is not governed by a LoadBalancer, it is a unique IP
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]