> See the sample under "3rd Party Solutions" section at:
> http://www.jensign.com/JavaScience/Thawte
>
> - Mitch Gallant
> JavaScience Consulting
Michel,
Thanks. The BCMain class looked promising, so I downloaded and tried to
modify it to generate a PKCS12 file containing a trusted certificate
instead of a private key - essentially I just changed setKeyEntry to
setCertificateEntry and deleted all the reference to private key info. This
results in a file which openssl recognises as a "certificate bag", but
specifying this as the truststore for JSSE does not result in joy: I get a
"javax.net.ssl.SSLException: untrusted server cert chain".
The certificate I want JSSE to recognise is signed by RSA Security, Inc.. Is
there a way to see with what root certificate it was signed? The cacerts
file in my jre installation only lists one cert with that company and OU
(namely the one with alias "verisignserverca"), so I've used that one in my
experiments.
Chris
>> I'm trying to work out how I can get my root certs into a format readable
>> by the BouncyCastle provider, and that seems to mean PKCS12. I have tried
[quoted text clipped - 7 lines]
>> Chris Gray chris@kiffer.eunet.be
>> /k/ Embedded Java Solutions

Signature
Chris Gray chris@kiffer.eunet.be
/k/ Embedded Java Solutions
Chris Gray - 07 Jul 2004 13:24 GMT
>> See the sample under "3rd Party Solutions" section at:
>> http://www.jensign.com/JavaScience/Thawte
[quoted text clipped - 11 lines]
> but specifying this as the truststore for JSSE does not result in joy: I
> get a "javax.net.ssl.SSLException: untrusted server cert chain".
OK, I've got a bit further: I gave my PKCS12 file the password "insecure",
and stuck that in the system.properties file. Now the server certificate is
getting recognised, and I fail at the subsequent handshake: bad_record_mac.
But that is subject matter for a new thread ...
Thanks
Chris

Signature
Chris Gray chris@kiffer.eunet.be
/k/ Embedded Java Solutions