You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/09/19 10:03:00 UTC

[jira] [Resolved] (CAMEL-19858) Truststore can't be found with sslContextParameters

     [ https://issues.apache.org/jira/browse/CAMEL-19858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-19858.
---------------------------------
    Resolution: Not A Bug

> 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)