# Re: Security providers and keytool

Jan Luehe (luehe@laguna.eng.sun.com)
Thu, 20 May 1999 17:42:26 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Bernard Leach: "Re: Decrypting PKCS8 private keys"
- Previous message: Jan Luehe: "Re: Decrypting PKCS8 private keys"
- Maybe in reply to: Robert Wille: "Security providers and keytool"

    Message-Id: <199905210042.RAA01597@laguna.eng.sun.com>

    Date: Thu, 20 May 1999 17:42:26 -0700 (PDT)

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

    Subject: Re: Security providers and keytool

    To: java-security@java.sun.com, RWILLE@novell.com

Vishal:

We fail to reproduce your problem.
Someone else had reported a similar problem (on Windows)
a while back,
and it turned out he had multiple version of the JDK installed.
After some clean-up, he was able to access his provider
(from keytool) just fine.

Jan

> Date: Tue, 18 May 1999 16:53:42 -0600
> From: "Robert Wille" <RWILLE@novell.com>
> To: <java-security@java.sun.com>
> Cc: "Vishal Goenka" <VGOENKA.PRV-7.PROVO@novell.com>
> Subject: Security providers and keytool
> Mime-Version: 1.0
> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: inline
>
> I have the need to use certificates signed with RSA, so I wrote an RSA
signature provider. I found that I cannot import self-signed certificates that
use RSA, even when my security provider is statically registered in the
java.security file. I get a "signature not available" error. However, if I run
java on sun.security.tools.KeyStore, it works. i.e.
>
> "keytool -import -alias cert -file cert.der" fails with "Signature not
available"
> "java sun.security.tools.KeyStore -import -alias cert -file cert.der" works
>
> I put a println statement in the constructor of my signature provider. When I
run keytool, the statement never gets printed. When I run java
sun.security.tools.KeyStore, the statement does print. Why doesn't keytool load
the security providers? Not loading the security providers limits the use of
keytool to Sun's provider.
>

- Next message: Bernard Leach: "Re: Decrypting PKCS8 private keys"
- Previous message: Jan Luehe: "Re: Decrypting PKCS8 private keys"
- Maybe in reply to: Robert Wille: "Security providers and keytool"