Apache Webserver echo password script

Imebatilisha Ilichapishwa Miaka 5 iliyopita Kulipwa wakati wa kujifungua
Imebatilisha Kulipwa wakati wa kujifungua

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 Skripti ya Shell Ubuntu

Kitambulisho cha Mradi: #18013749

Kuhusu mradi

9 mapendekezo Mradi wa mbali Ipo mtandaoni %project.latestActivity_relativeTime|badilisha%

9 wafanyakazi huru wanazabuni wastani wa $22 kwa kazi hii

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 kwa siku 1
(Maoni 21)
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 Zaidi

$25 USD kwa siku 0
(Maoni 1)
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 kwa siku 1
(Maoni 0)
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 Zaidi

$25 USD kwa siku 1
(Maoni 0)
0.0
Rstanjim

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

$11 USD kwa siku 1
(Maoni 0)
0.0