Re: How Java work with PKCS12?

From: Didi (didi1976NO_at_SPAMgmx.net)
Date: 07/28/03


Date: Mon, 28 Jul 2003 18:14:03 +0200

Hi,

you can access a PKCS12-File directly from Java.

java.security.KeyStore ks = java.security.KeyStore.getInstance("PKCS12");
ks.load(new
java.io.FileInputStream("yourStore.p12"),"yourPassword".toCharArray());

Didi

"Samui" <samuicheng@yahoo.com.hk> schrieb im Newsbeitrag
news:978c0c78.0307232208.a66f8f2@posting.google.com...
> Hi,
> I'm a beginner of Java security.
> Is it possible to get Public Key and Private Key from a PKCS12
> certificate by Java program?
> How can I do it?
> Is there any sample codes or tutorial?
>
> Thanks!
>
> Samui



Relevant Pages

  • Re: Public Key from RSA CSP
    ... > I have created a Web Service that will be called from a java client. ... The java development team is not able to import the public key ...
    (microsoft.public.dotnet.security)
  • Re: Porting Java Public Key Hashing to C#
    ... > Java. ... Are you having a problem with exporting the public key from ... and decode that to a Microsoft CryptoAPI PUBLICKEYBLOB ... If you have an X509 certificate (say from Java exporting or elsewhere), ...
    (microsoft.public.dotnet.security)
  • Java: Cramer-Shoup 98 Crypto System
    ... I'd like to announce the availability of an Java Implementation of the ... Cramer-Shoup public key crypto system. ... java Crypter d CRYPTO.txt DECRYPTED.txt ... A practical public key crypto system ...
    (sci.crypt)
  • PKI - Java/CryptoAPI - padding problem?
    ... I am using Public Key Encryption between a Java Serverand a Win32 C++ client. ... Reverse the resultant bytes and Send it across thru sockets to Java Server ...
    (microsoft.public.platformsdk.security)
  • Re: Verifying a Java Signature using LDAP fails...
    ... Generic Java 2 and .NET generated standard bog-endian-ordered pkcs #1 signature ... bytes as above (assume you hash identical data bytes with same hash algorithm specified) ... The public key is stored in binary form on an LDAP server ... > I then create a Hash of the signed data and try to verify it with CryptVerifySignature which fails ...
    (microsoft.public.platformsdk.security)