# Re: How to export the private key to a file??

Jan Luehe (Jan.Luehe@Eng)
Tue, 30 Jun 1998 09:01:32 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jatinder Bali: "Clients and certificates ..."
- Previous message: Swaminathan Seetharaman.: "How to export the private key to a file??"
- Maybe in reply to: Swaminathan Seetharaman.: "How to export the private key to a file??"

    Date: Tue, 30 Jun 1998 09:01:32 -0700 (PDT)

    From: Jan Luehe <Jan.Luehe@Eng>

    Subject: Re: How to export the private key to a file??

    To: java-security@java0.javasoft.com, sswami@krdl.org.sg

Swaminathan:

> I used jdk1.2beta3 keytool to generate key pair and the certificate.
> I am able to export the certificate from .keystore(the file where the
> keys and the certificate are stored) to a file.
>
> My requirement is to export the private key to a file.

"keytool" does not support this.
You would have to use the java.security.KeyStore APIs directly
to export a private key.

Jan

- Next message: Jatinder Bali: "Clients and certificates ..."
- Previous message: Swaminathan Seetharaman.: "How to export the private key to a file??"
- Maybe in reply to: Swaminathan Seetharaman.: "How to export the private key to a file??"