Difference between revisions of "openvpn not prompting for password"

From thelinuxwiki
Jump to: navigation, search
(Created page with "==problem description== # /etc/init.d/openvpn start <br> command never prompts for password for the privite key configured in the default openvpn.conf file. So, it never sta...")
 

Latest revision as of 20:22, 9 April 2016

problem description

  1. /etc/init.d/openvpn start


command never prompts for password for the privite key configured in the default openvpn.conf file. So, it never starts.


version

openvpn-2.3.10-r1

O.S. = gentoo

solution

the --askpass option needs to be passed when the program is started.

the openvpn init script and conf file were examined. I didn't see a graceful way to pass the --askpass option...so, I added the following line to the init script...


args="$args --askpass"