Apache Webserver echo password script

Cancelled Posted 5 years ago Paid on delivery
Cancelled Paid on delivery

When apache webserver is given an encrypted private key and ssl cert, it uses SSLPassPhraseDialog directive in [login to view URL] file like:

SSLPassPhraseDialog exec:/var/www/cgi-bin/[login to view URL]

to call a simple [login to view URL] script which generally has below lines:

#!/bin/sh

#below line works

echo "changeit"

#below line does not work

#echo $PKEY_Passphrase

where PKEY_Passphrase is an environment variable, how to make this script call env variable?

Apache Linux Shell Script Ubuntu

Project ID: #18013749

About the project

9 proposals Remote project Active 5 years ago

9 freelancers are bidding on average $22 for this job

VarunUnix

Hi, Is this environmental variable showing in `env` command? if not you need to export to make it globally accessible. Then it an be read from your script. Pls message me if my help required. Thanks

$10 USD in 1 day
(21 Reviews)
4.7
gwpuck89

Hey there, Try this: echo "$PKEY_Passphrase" Also, you need to make sure that the env var is set and exported in your Apache user's runtime config file (usually .bashrc, or .cshrc, or something like that.) Other More

$25 USD in 0 days
(1 Review)
1.5
Hinamika

The private key is encrypted so you have to decrypt it. If you want to know how to decrypt, feel free to contact. :)

$15 USD in 1 day
(0 Reviews)
0.0
Eniyan8874

Hey I have this script handy. 2 options: if you want to encrypt password value.. its doable.. if you want to replace with environment variable.. that's also doable.. Please contact me Relevant Skills and Experien More

$25 USD in 1 day
(0 Reviews)
0.0
Rstanjim

-----Hello Sir,I can do that your full project .Ready to start Now and completed ASAP "----------- Thanks Reply

$11 USD in 1 day
(0 Reviews)
0.0