[ https://issues.apache.org/jira/browse/CAMEL-19858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerald Kallas updated CAMEL-19858: ---------------------------------- Description: I've following code {code:java} <sslContextParameters id="sslContextParameters" xmlns="http://camel.apache.org/schema/blueprint"> <keyManagers keyPassword="xxx"> <keyStore resource="/opt/apache-karaf/etc/casisp.p12" password="xxx"/> </keyManagers> <trustManagers> <keyStore resource="/opt/apache-karaf/etc/truststore.jks" password="xxx"/> </trustManagers> </sslContextParameters> ... <to uri='https://server/api/v1/entity/integrationservice/delta?sslContextParameters=#sslContextParameters'/>{code} and I'm getting the error {code:java} javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty{code} This error relates normally to the fact that a keystore or truststore can't be found. Both are there and the truststore contains the appropriate certificate. was: I've following code {code:java} <sslContextParameters id="sslContextParameters" xmlns="http://camel.apache.org/schema/blueprint"> <keyManagers keyPassword="xxx"> <keyStore resource="/opt/apache-karaf/etc/casisp.p12" password="xxx"/> </keyManagers> <trustManagers> <keyStore resource="/opt/apache-karaf/etc/truststore.jks" password="xxx"/> </trustManagers> </sslContextParameters> ... <to uri='https://server/api/v1/entity/integrationservice/delta?sslContextParameters=#sslContextParameters'/>{code} and I'm getting the error {code:java} javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty{code} This error relates normally to the fact that a keystore or truststore can't be found. Both are there and the truststore contains the appropriate certificate. > Truststore can't be found with sslContextParameters > --------------------------------------------------- > > Key: CAMEL-19858 > URL: https://issues.apache.org/jira/browse/CAMEL-19858 > Project: Camel > Issue Type: Bug > Components: camel-http4 > Affects Versions: 3.20.2 > Reporter: Gerald Kallas > Priority: Major > > I've following code > {code:java} > <sslContextParameters id="sslContextParameters" > xmlns="http://camel.apache.org/schema/blueprint"> > <keyManagers keyPassword="xxx"> > <keyStore resource="/opt/apache-karaf/etc/casisp.p12" > password="xxx"/> > </keyManagers> > <trustManagers> > <keyStore > resource="/opt/apache-karaf/etc/truststore.jks" password="xxx"/> > </trustManagers> > </sslContextParameters> > ... > <to > uri='https://server/api/v1/entity/integrationservice/delta?sslContextParameters=#sslContextParameters'/>{code} > and I'm getting the error > {code:java} > javax.net.ssl.SSLException: Unexpected error: > java.security.InvalidAlgorithmParameterException: the trustAnchors parameter > must be non-empty{code} > This error relates normally to the fact that a keystore or truststore can't > be found. > Both are there and the truststore contains the appropriate certificate. -- This message was sent by Atlassian Jira (v8.20.10#820010)