Apache Webserver echo password script

Cancelado Publicado hace 5 años Pagado a la entrega
Cancelado Pagado a la entrega

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

Nº del proyecto: #18013749

Sobre el proyecto

9 propuestas Proyecto remoto Activo hace 5 años

9 freelancers están ofertando un promedio de $22 por este trabajo

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 en 1 día
(21 comentarios)
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 Más

$25 USD en 0 días
(1 comentario)
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 en 1 día
(0 comentarios)
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 Más

$25 USD en 1 día
(0 comentarios)
0.0
Rstanjim

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

$11 USD en 1 día
(0 comentarios)
0.0