0 Replies Latest reply on Oct 3, 2011 4:53 AM by zerros

    Help with keystores

    zerros

      Hi,

       

      Please forgive me for my bad english. I'm a french people.

       

      I have some problem to use multiple alias in one keystore loaded by the JVM when jboss start:

      -Djavax.net.ssl.trustStore=/path/to/cacerts

      -Djavax.net.ssl.trustStorePassword=changeit

      -Djavax.net.ssl.keyStore=path/to/alljks.jks

      -Djavax.net.ssl.keyStorePassword=changeit

       

      In all.jks I have two private key entries:

      alias1, Sep 27, 2011, PrivateKeyEntry,

      Certificate fingerprint (MD5): xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

      alias2, Sep 27, 2011, PrivateKeyEntry,

      Certificate fingerprint (MD5): xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

       

      These keys are used to authenticate web services calls. If I try the first WS (supposed to use alias1), I have an error: "bad certificate".

      But the second one function correctly. i think that the first call to first WS uses a wrong PrivateKeyEntry.

       

      Any experiences with that ?

       

      Thanks.