Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I was using the process detailed here to generate a SSL cert for tomcat:

GoDaddy tomcat installation docs

I made a mistake and put the wrong CN name when prompted by the keystore command, and when I tried to start over, I got the error "key pair not generated".

How can I fix it?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

To fix it, I simply got rid of the 2 files that the tutorial created ("crt.crt" file and "tomcat.keystore") and then I could start the process over again. And as suggested in the comments, backup your original files before doing this.

share|improve this answer
2  
As a (paranoid) word of caution to other people who may come across this post, I'd suggest backing up the crt and keystore files prior to removing them. =) –  Mike B Jun 13 '12 at 17:05
    
a wise suggestion! I'll add that to my answer. –  Brad Parks Jun 13 '12 at 17:15
    
as a slight aside, you can create the PEM file for this process by following this: stackoverflow.com/a/5596842/26510 –  Brad Parks Sep 3 '12 at 1:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.