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 generated new key using this, (I wanted start nginx without passphrase)

openssl rsa -in -out server.key

and everything looks fine, but when I try restart nginx it still ask for a pem passphrase(and even I typed the key it still ask for the passphrase...), default config in sites-available is fine.

why pem is needed then?


share|improve this question
up vote 0 down vote accepted

A PEM is a file that contains both the key and certificate data. The order is important, KEY first, CERT Second.

It's possible that you did not update the PEM file accordingly.

share|improve this answer

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.