FS#47481 - [openvpn] 2.3.8 no longer prompts for certificate private key password
Attached to Project:
Arch Linux
Opened by sgt_b2002 (sgt_b2002) - Monday, 21 December 2015, 23:15 GMT
Last edited by Sébastien Luttringer (seblu) - Monday, 28 December 2015, 17:28 GMT
Opened by sgt_b2002 (sgt_b2002) - Monday, 21 December 2015, 23:15 GMT
Last edited by Sébastien Luttringer (seblu) - Monday, 28 December 2015, 17:28 GMT
|
Details
Description:
After upgrading from OpenVPN 2.3.8 from 2.3.5 attempts to start an OpenVPN connection via systemd do not include a prompt for certificate private key password. Instead, only the username and password prompts appear. Executing OpenVPN outside of systemd via command line works correctly and prompts for username, password, and certificate private key password are provided. There are no errors that I can see. Removing --daemon from the unit file results in the prompt for the private key password appearing, but this is not ideal. Adding --askpass to the unit file does not appear to have any effect. Additional info: openvpn 2.3.8-2 May be related to https://bugs.archlinux.org/task/46422 Steps to reproduce: Launch openvpn via systemd with a private key requiring a password. |
This task depends upon
Closed by Sébastien Luttringer (seblu)
Monday, 28 December 2015, 17:28 GMT
Reason for closing: Fixed
Monday, 28 December 2015, 17:28 GMT
Reason for closing: Fixed
If there's something specific you need me to provide just let me know.
Still not being prompted for my certificate private key password.
If there's anything you'd like me to do just let me know.
For reference:
https://community.openvpn.net/openvpn/ticket/630
https://community.openvpn.net/openvpn/ticket/618
https://github.com/OpenVPN/openvpn/commit/015fe7177181fb4944ddf33debcfcd20c62ba55a
https://community.openvpn.net/openvpn/ticket/641
Modifying /lib/systemd/system/openvpn@.service as follows resolved the issue for me.
[Unit]
Description=OpenVPN connection to %i
[Service]
Type=forking
ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --askpass --daemon openvpn@%i --writepid /run/openvpn@%i.pid
PIDFile=/run/openvpn@%i.pid
[Install]
WantedBy=multi-user.target