You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Olayemi Olatunji <ol...@phillipsconsulting.net> on 2012/12/28 10:11:34 UTC

generating a CSR

Hi,

I need help with creating a CSR which I want to send to symmantec.

My tomcat version is 5.5.x.

When I run the command

keytool -certreq -keyalg RSA -alias tomcat -file certreq.csr -keystore .keystore

where .keystore is the name of the keystore file... I get the error: "keytool error: java.lang.Exception: Keystore file does not exist: .keystore"

Please help with the error.

Regards,
Olayemi Olatunji   | Senior Analyst

[cid:image002.png@01CDE4E3.B745B380]<http://www.phillipsconsulting.net/>

Mobile: +234 (0)7036583697 +234 (0)8137061701
Skype:   yemiolat
4th Floor, UBA House, 57 Marina, Lagos, Nigeria




Re: generating a CSR

Posted by Casper Wandahl Schmidt <ka...@gmail.com>.
See inline

Med venlig hilsen/Kind regards
Casper W. Schmidt

Den 28-12-2012 10:11, Olayemi Olatunji skrev:
>
> Hi,
>
> I need help with creating a CSR which I want to send to symmantec.
>
> My tomcat version is 5.5.x.
>
First of all that is EOL you really should upgrade
>
> When I run the command
>
> keytool -certreq -keyalg RSA --alias tomcat -file certreq.csr 
> -keystore .keystore
>
> where .keystore is the name of the keystore file... I get the error: 
> /"keytool error: java.lang.Exception: Keystore file does not exist: 
> .keystore"/
>
This has nothing to do with Tomcat really. Have you tried google for 
that? http://lmgtfy.com/?q=keytool+generate+csr returns 
http://www.entrust.net/knowledge-base/technote.cfm?tn=8425 as the third 
result which tells you that you need to create a keystore first./
/
>
> //
>
> Please help with the error.
>
> *Regards,*
>
> *Olayemi****Olatunji**   | **Senior Analyst***
>
> Description: 
> C:\Users\Olayemio\AppData\Roaming\Microsoft\Signatures\Copy of 
> Training (Olayemi Olatunji)-Image01.png 
> <http://www.phillipsconsulting.net/>
>
> 	
>
> Mobile: +234 (0)7036583697 +234 (0)8137061701
> Skype:   yemiolat
> 4th Floor, UBA House, 57 Marina, Lagos, Nigeria
>


Re: generating a CSR

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Olayemi,

On 12/28/12 4:11 AM, Olayemi Olatunji wrote:
> I need help with creating a CSR which I want to send to symmantec.
> 
> My tomcat version is 5.5.x.

Upgrade.

> When I run the command
> 
> keytool -certreq -keyalg RSA –alias tomcat -file certreq.csr
> -keystore .keystore
> 
> where .keystore is the name of the keystore file… I get the error: 
> /“keytool error: java.lang.Exception: Keystore file does not
> exist: .keystore”/

You are mixing up commands. You need to first create a server key,
then a CSR, then (later) import the certificate into your keystore.

Try reading the documentation
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html which clearly
lays all of this out for you with step-by-step instructions.

Oh, and you should upgrade. All the way up to 7.0.34.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDd8QwACgkQ9CaO5/Lv0PAppACfWKK8BeBbFvEKEmYuGwcusMI4
3A4AnA/U4oXvGo3xizvOk5zxyVaiPt8I
=/KFA
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org