How to remove pass-phrase from SSL key file afterwards

How to remove pass-phrase from SSL key file afterwards

Postby daliose » Wed Nov 14, 2012 11:47 am

When using Apache-SSL Certificates you typically have to create a password when initially setting up the certificates on your server.
Unfortunately after configuring Apache to use the certificate it will prompt you for the password each time it starts.
This means your web-server will not run if the system reboots automatically without you having to log in and start it with the password manually.

Luckily there is an easy way to remove the password from a ssl key.

Just find your key and use this command to create a new key without password:

Code: Select all
openssl rsa -in mysslkey.key -out mysslkeynopassword.key

Then change your Apache configuration to use mysslkeynopassword.key instead of the one with password and Apache will start automatically again.

Obviously there is a security risk involved. So make sure no evil gets access to your new mysslkeynopassword.key file.
Site Admin
Posts: 228
Joined: Thu Jun 24, 2010 2:09 pm

Return to Apache

Who is online

Users browsing this forum: No registered users and 2 guests