Re: How Java work with PKCS12?
From: Samui (samuicheng_at_yahoo.com.hk)
Date: 07/30/03
- Previous message: K Goudy: "Weird ICMP scan"
- In reply to: Roedy Green: "Re: How Java work with PKCS12?"
- Next in thread: Roedy Green: "Re: How Java work with PKCS12?"
- Reply: Roedy Green: "Re: How Java work with PKCS12?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 30 Jul 2003 07:56:46 -0700
Thanks!
I have 2 certificates of different CAs.
I can get private key and public key for one of the CA.
But for the other one, I got the following error......
Exception in thread "main" java.io.IOException: unsupported PKCS12 bag
type 1.2.840.113549.1.12.10.1.1
at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.a(DashoA6275)
at com.sun.net.ssl.internal.ssl.PKCS12KeyStore.engineLoad(DashoA6275)
at java.security.KeyStore.load(KeyStore.java:652)
at GetKeys.main(GetKeys.java:27)
How can I solve this?
Roedy Green <roedy@mindprod.com> wrote in message news:<0sdeiv45hvncf1o8eb7b3c2r0ulgk4tmfk@4ax.com>...
> On 29 Jul 2003 00:24:40 -0700, samuicheng@yahoo.com.hk (Samui) wrote
> or quoted :
>
> >And how can I get the public key ?
> try Keystore.getCertificate().getPublicKey()
- Previous message: K Goudy: "Weird ICMP scan"
- In reply to: Roedy Green: "Re: How Java work with PKCS12?"
- Next in thread: Roedy Green: "Re: How Java work with PKCS12?"
- Reply: Roedy Green: "Re: How Java work with PKCS12?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|