2 Replies Latest reply on Apr 10, 2009 10:23 AM by Frederick Thurber

    Two-way SSL, which certificate does the client send?

    Frederick Thurber Newbie


      I have two JBoss servers running our application, connected by https, and I have a question about client certificates, one is a client and the other a server. However when I turned on clientAuth (and CLIENT-CERT), the client JBoss does not seem to send the correct certificate. I get this error:

      SSLHandshakeException: Received fatal alert: bad_certificate
      


      I have checked the truststores on both JBoss servers, and they seem to be loaded correctly, etc. The trust and identity stores are set up in the usual JBoss fashion and named Identity.jks and Truststore.jks.

      However I am wondering which certificate the client actually sends when the server asks for the client cert. I would think that it would sent my self-signed cert in Identity.jks, but now I am not sure it does.

      Does my client code know enough to find the cert in Identity.jks or do I need to explicitly set the javax.net.ssl.keyStore system property? I tried doing this in the JAVA_ARGS in the run.sh, but there were dire consequences. Do I need to do this in my application code?