Re: Problems when importing a SSL certificate

2001-07-12 Thread Manjunath BHat

Hello

I was trying SSL with tomcat. The steps are as follows

I created key using following command,

"C:\jakarta-tomcat-3.2.2\key>keytool -genkey -alias tomcat -keyalg RSA 
-keystore
tomcat.keystore
Enter keystore password:  changeit"

I was able to implement this Certificate but it was it was Self signed. I 
send This key for signing to Thawte (Free test certificate programme).
For that i created CSR as follows

"C:\jakarta-tomcat-3.2.2\key>keytool -certreq -alias tomcat -file req 
-keystore
tomcat.keystore
Enter keystore password:  changeit."

The certificate i got from CA saved to file "signedtom". And when i tried 
importing to my keystore using following command. nad it gaave me following 
Error.

"C:\jakarta-tomcat-3.2.2\key>keytool -import -trustcacerts -alias tomcat 
-keystor
e tomcat.keystore -file signedtom
Enter keystore password:  changeit
keytool error: java.security.cert.CertificateException: Unsupported 
encoding"

Did i miss anything here?

I'm working on NT.& Tomcat3.2.2

Please Help me in this regard.


Thanks

Manjunath


>From: Tim O'Neil <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Problems when importing a SSL certificate
>Date: Wed, 11 Jul 2001 08:31:36 -0700
>
>Assuming your using Tomcat standalone, make sure your key store
>pass word and your key pass word are the same. Yes, which means
>you can store one key in your keystore. I ran into this little
>hitch myself. I wasn't able to get tomcat standalone to work ssl
>any way though. If you do let me know how you did it.
>
>
>At 05:25 AM 7/11/2001, you wrote:
>>Hi,
>>
>>   I´ve got the Tomcat/SSL Howto from the jakarta Project webpage. In the
>>last step of "Importing SSL certificates", i´ve got some trouble. The
>>output of the command "keytool -import -v -trustcacerts -alias tomcat
>>-file CERT.pem" was this:
>>
>>Enter keystore password:  changeit
>>keytool error: java.lang.Exception: Public keys in reply and keystore
>>don't match
>>
>>
>>What happened? How can I fix it?
>>
>>I hope you can help me...
>>
>>Thanks beforehands
>>--
>>Antonio Terceiro
>><[EMAIL PROTECTED]>
>>--
>>Bolsista do projeto SIDOC
>>CPD/UFBA - Divisão de Projetos
>

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: Problems when importing a SSL certificate

2001-07-11 Thread Tim O'Neil

Assuming your using Tomcat standalone, make sure your key store
pass word and your key pass word are the same. Yes, which means
you can store one key in your keystore. I ran into this little
hitch myself. I wasn't able to get tomcat standalone to work ssl
any way though. If you do let me know how you did it.


At 05:25 AM 7/11/2001, you wrote:
>Hi,
>
>   I´ve got the Tomcat/SSL Howto from the jakarta Project webpage. In the
>last step of "Importing SSL certificates", i´ve got some trouble. The
>output of the command "keytool -import -v -trustcacerts -alias tomcat
>-file CERT.pem" was this:
>
>Enter keystore password:  changeit
>keytool error: java.lang.Exception: Public keys in reply and keystore
>don't match
>
>
>What happened? How can I fix it?
>
>I hope you can help me...
>
>Thanks beforehands
>--
>Antonio Terceiro
><[EMAIL PROTECTED]>
>--
>Bolsista do projeto SIDOC
>CPD/UFBA - Divisão de Projetos




Problems when importing a SSL certificate

2001-07-11 Thread Antonio Terceiro

Hi,

  I´ve got the Tomcat/SSL Howto from the jakarta Project webpage. In the
last step of "Importing SSL certificates", i´ve got some trouble. The
output of the command "keytool -import -v -trustcacerts -alias tomcat
-file CERT.pem" was this:

Enter keystore password:  changeit
keytool error: java.lang.Exception: Public keys in reply and keystore
don't match


What happened? How can I fix it?

I hope you can help me...

Thanks beforehands
-- 
Antonio Terceiro
<[EMAIL PROTECTED]>
--
Bolsista do projeto SIDOC
CPD/UFBA - Divisão de Projetos