You'll need to delete your old certificate first using something like the
following (though it will need to be changed for your environment):

%JAVA_HOME%\bin\keytool -delete -alias tomcat -keypass changeit

-Scott



On 6/29/07, sriram purushothaman <[EMAIL PROTECTED]> wrote:


Hi

I am following this URL to generate the SSL certificate to be used with
CAS.
http://www.ja-sig.org/wiki/display/CAS/Solving+SSL+issues

I got a server.crt and it is in "D:\bea\jdk142_05\bin". This certificate
is added to my cacerts in "D:\bea\jdk142_05\jre\lib\security"
I wrongly gave my name "Sriram Purushothaman" for the "first name and last
name" question.

Now, i am trying to generate a new certificate using "localhost" as "first
name and last name" and retaining the same answer for other questions.

I have deleted the earlier "server.crt" and my attempt to import the new "
server3.crt" is failing because of this below exception

> keytool -import -file server3.crt -keypass changeit -keystore
D:/bea/jdk142_05/jre/lib/security/cacerts
> Enter keystore password:  changeit
> keytool error: java.lang.Exception: Certificate not imported, alias
<mykey> already exists

Can you please help?

Thanks

------------------------------
Ready for the edge of your seat? Check out tonight's top 
picks<http://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/>on Yahoo! TV.

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas




--
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to