Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm thinking about restarting a client's Apache server, but I'm reluctant to do so because I know he's currently running HTTPS and I don't want to get stuck with the server prompting me for the SSL Passphrase (which I don't have and he's not sure if there is one or not).

Is there a quick/easy way to check whether Apache will require the SSL pass phrase before restarting it?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

You could check whether the private key is password protected by running

$ openssl rsa -in /path/to/private.key -check -noout

If this prompts you for the password, the key is obviously password protected.

share|improve this answer
    
+1 Thanks @Andreas. Worked a charm and responded with 'RSA key ok'. –  James Spittal Apr 18 at 14:24

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.