?
Solved

enter phrase in the rc.local file

Posted on 2003-03-19
4
Medium Priority
?
422 Views
Last Modified: 2012-08-13
hi,

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
my_pass
EOF

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

hope there is a way out

thanking you
0
Comment
Question by:olsworld
[X]
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
4 Comments
 
LVL 20

Accepted Solution

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

-- Glenn
0
 

Assisted Solution

by:troburn69
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!

-A
0
 

Expert Comment

by:CleanupPing
ID: 9087677
olsworld:
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 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 2

Expert Comment

by:TheWeakestLink
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.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheWeakestLink
EE Cleanup Volunteer
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

777 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