Re: How Java work with PKCS12?

From: Samui (samuicheng_at_yahoo.com.hk)
Date: 07/30/03

  • Next message: Andrew: "Re: Please Help with WINCFG.SCR Infection !"
    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()


  • Next message: Andrew: "Re: Please Help with WINCFG.SCR Infection !"

    Relevant Pages

    • RE: Can you impersonate a client side cert??
      ... The mistake you're making is in thinking that the user's public key is ... along with a number of other public keys from other CAs that are ... In authenticating a user using certificates, the server has to ask itself ... This list is provided by the SecurityFocus Security Intelligence Alert ...
      (Pen-Test)
    • Re: I have installed my digital certificate,but where is my public key?
      ... You don't need to worry about your public key. ... I posted to you once how to secure your privacy, ... Personally I have certificates for such purposes (on-line ... have a backup of your private key in secure place (e.g. exported and ...
      (microsoft.public.security)
    • Re: Certificates
      ... > Certificates in Windows 2000/2003 are part of the Public Key ... > The domain recovery agent for EFS is an example of a private key used to ... With smart card access required, ...
      (microsoft.public.cert.exam.mcse)
    • Re: Certificates
      ... Certificates in Windows 2000/2003 are part of the Public Key Infrastructure used ... as more secure or additional authentication for users AND computers. ... The domain recovery agent for EFS is an example of a private key used to recover ...
      (microsoft.public.cert.exam.mcse)
    • Re: Question about cryptography and public/private keys
      ... source if your private key couldn't unlock the ciphered data because ... Yep, you got encryption down. ... Encrypting with the public key though ... you can generate your own certificates and ...
      (alt.computer.security)