Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
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: – Brad Parks Sep 3 '12 at 1:47

Your Answer


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.