openvpn not prompting for password

From thelinuxwiki
Jump to: navigation, search

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"