Home > Server > openssl – how to disable passphrase prompt on apache2 restart

openssl – how to disable passphrase prompt on apache2 restart


Whenever apache2 restart and you have to manualy Enter the pass phrase of your ssl key.

To automatically start/restart apache2 without the prompt dialog, you can either store the passphrase in a secure folder or remove the password.

OPTION 1. store passphrase:

from your ssl.conf under /etc/apache2/mods-enabled/ssl.conf

SSLPassPhraseDialog  exec:/securepath/to/passphrase-file

then create passphrase-file and type

#!/bin/sh
echo "passphrase"

save file then make it executable

# chmod +x /passphrase-file

http://www.linuxquestions.org/questions/linux-server-73/apache-requires-ssl-passphrase-671559/

OPTION 2. Remove password:

# openssl rsa -in website.com.key -out website.com.key.nopass

then from update the location of your key file in your apache2 virtual hosts.

http://chrisschuld.com/2008/08/removing-the-password-on-an-apache-ssl-certificate/

 

  1. May 17, 2014 at 5:15 am

    What’s up, after reading this amazing article i am as well glad to share my familiarity here with mates.

  2. June 11, 2014 at 1:15 am

    Hello! I just wanted to ask if you ever have any trouble with hackers?
    My last blog (wordpress) was hacked and I ended up losing several weseks
    of hard work duee to no backup. Do you have any solutions
    to prevent hackers?

  3. July 31, 2014 at 2:39 pm

    Pretty! This was a really wonderful post.

    Many thanks for supplying this information.

  4. August 16, 2014 at 10:53 am

    Awesome things here. I am very satisfied to see your
    post. Thanks so much and I am taking a look ahead to
    touch you. Will you please drop me a mail?

  5. August 17, 2014 at 5:16 am

    hello there and thank you for your info – I’ve definitely picked up
    anything new from right here. I did however expertise some technical
    points using this website, as I experienced to reload the website many
    times previous to I could get it to load correctly. I had been wondering if your web
    hosting is OK? Not that I am complaining, but slow loading instances times will often affect your placement in google and can damage your high quality score if
    advertising and marketing with Adwords. Anyway I’m adding this RSS to my e-mail and can look out for a lot more
    of your respective fascinating content. Ensure that you update this again soon.

  6. September 24, 2014 at 1:56 pm

    Hey there! Would you mind if I share your blog with my zynga group?
    There’s a lot of people that I think would really enjoy your content.

    Please let me know. Many thanks

  7. October 11, 2014 at 2:32 pm

    This article is actually a nice one it assists new internet viewers, who are wishing for blogging.

  8. November 26, 2014 at 7:15 am

    I am truly delighted to glance at this weblog posts which consists of
    plenty of useful facts, thanks for providing these information.

  9. June 11, 2015 at 11:55 am

    easy of that day points sof t at bisa for oversee article moving as

  10. June 17, 2015 at 4:04 pm

    duct tingis key ia the of ndonesiafasilitasmen ularly robustneeds af kursus website terbaik go to

  11. June 17, 2015 at 4:12 pm

    ges the barga ewith the conferences itshare its important architects kursus website terbaik tempat kursus komputer

  12. August 20, 2015 at 3:05 am

    Today, some rights group and not for profit media
    groups are emerging to explore this single power of the internet and the highbred mass media technologies to
    present the facts and truths behind world views through unbiased analyses and opinion expressions.
    Individual’s able to get latest news as per their own interest,
    level of easy accessibility, exclusive breaking news videos, pictures of
    happening events and many more. Any event affecting one country can have far-reaching consequences
    on several other nations. As people ease their grip on their wallets, the car industry is hoping they spend their money on a new car.

  13. October 22, 2015 at 1:24 am

    Aw, this was an incredibly nice post. Spending some time and actual effort to create a very good article… but what can I say… I put things off a whole lot and don’t manage to get anything done.

  1. July 18, 2014 at 8:50 am
  2. September 5, 2015 at 6:43 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: