# Re: Problem in generation key pair for RSA

Jan Luehe (luehe@laguna.eng.sun.com)
Wed, 24 Mar 1999 17:07:35 -0800 (PST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Arron Ferguson: "Signed Applets - Help!!!"
- Previous message: Nick Matsakis: "Netscape's Overzealous Security Manager"
- Maybe in reply to: Seema Bandyopadhyay: "Problem in generation key pair for RSA"

    Message-Id: <199903250107.RAA07586@laguna.eng.sun.com>

    Date: Wed, 24 Mar 1999 17:07:35 -0800 (PST)

    From: Jan Luehe <luehe@laguna.eng.sun.com>

    Subject: Re: Problem in generation key pair for RSA

    To: java-security@java.sun.com, seema@ecn.purdue.edu

Seema:

I'd suggest you do the following:

Write a small program that calls

Security.getProvider("IAIK").list(System.out);
(This assumes that you already have registered the IAIK
provider, as you said you did. Also, I am not sure about
the symbolic provider name, but I guess it's "IAIK". You
can find out.)

This will print all the properties in the provider master file.

You should check for a property named

KeyPairGenerator.<algorithm>
and use the value of <algorithm> as the value of the
"-keyalg" option in keytool.

They may be using "RSAEncryption" instead of "RSA".

Jan

> From: Seema Bandyopadhyay <seema@ecn.purdue.edu>
> Subject: Problem in generation key pair for RSA
> To: java-security@java.sun.com
> Date: Wed, 24 Mar 1999 03:06:51 -0500 (EST)
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
>
> Hi,
>
> I have JDK1.2 and IAIK-JCE2.0 installed on my PC. I was trying to use keytool
> to generate key pairs for RSA algorithm. As suggested I added the following
> line to java.security file to add IAIK as a provider.
>
> security.provider.2=iaik.security.provider.IAIK
>
> But when I tried to create a keypair giving keyalg as RSA , it gave me the
following error:
>
> keytool error : KeyPairGenerator not available
>
> Could you please tell me what else should have been done to make it work.
>
>
> Thanking You,
>
> Seema Bandyopadhyay.
>
>
>

- Next message: Arron Ferguson: "Signed Applets - Help!!!"
- Previous message: Nick Matsakis: "Netscape's Overzealous Security Manager"
- Maybe in reply to: Seema Bandyopadhyay: "Problem in generation key pair for RSA"