JDK 1.2 does not include support for RSA by default.
In order for the command below to work, you need to
install a Cryptographic Service Provider that
supports RSA signatures.
You can either write your own provider or license a
commercial one (e.g., JSAFE from RSA Data Security, Inc.).
See
http://java.sun.com/products/jdk/1.2/docs/guide/security/HowToImplAProvider.html
for information about how to write your own provider.
See
http://java.sun.com/products/jdk/1.2/docs/guide/security/CryptoSpec.html#Provide
rInstalling
for information about how to install a provider.
Jan
> I'm trying to use the following command:
>
> keytool -genkey -alias xxx -keysize 1024 -keyalg "RSA" -keystore
> xxx -storepass xxx -v
>
> It isn't working. It produces this message:
>
> keytool error: KeyPairGenerator not available
>
> This message, I assume is related to the fact that I'm using the "RSA"
> keyalg as I do not get this message when I try "DSA". Why isn't this
> working. I cannot find any documentation relating to this error.
>
> Thanks,
>
> Brian
>