Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


enter phrase in the rc.local file

Posted on 2003-03-19
Medium Priority
Last Modified: 2012-08-13

i got modssl installed with apache and i want to startup apache whenever machin boots up... but to start ssl it requires phrase [ password ] to start... how do i automate this??? is there any way to enter phrase in rc.local file???

i tried followin but didnt work

apachectl startssl <<EOF

where my_pass is the phrase its askin to start the service...

hope there is a way out

thanking you
Question by:olsworld
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 20

Accepted Solution

Gns earned 100 total points
ID: 8165526
Can't you use the SSLPassPhraseDialog directive to use something else but the builtin?

-- Glenn

Assisted Solution

troburn69 earned 100 total points
ID: 8218427
You can probably resolve this by removing the encryption from your private key file.  You can use the OpenSSL toolkit (or similar) to do this.  Typically a command like the following will work:

openssl rsa -in key.pem -out plain_key.pem

This should prompt you for the password protecting the key.  There are two general formats for storing private keys, if that command fails you can try using:

openssl pkcs8 -in key.pem -out plain_key.pem

If your key is in DER format rather than PEM (not the default case generally) then add "-inform DER" to either of the above commands.

Let me know if none of those commands work for you -- they should.

Be sure to take appropriate steps to secure this file.  This will somewhat compromise your security, but no more so than hard-wiring the password in a script.  Bottom line, having an automated start-up procedure compromises some security for convenience.  As with most things it's a trade-off...

Hope this helps!


Expert Comment

ID: 9087677
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Expert Comment

ID: 9288931
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Split points between Gns and troburn69
Please leave any comments here within the next seven days.


EE Cleanup Volunteer

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question