openvpn not prompting for password

From thelinuxwiki
Revision as of 20:22, 9 April 2016 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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"