Hi,
I've look around internet a bit about my issue, and I found a lot of similar problem for client but not for server sadly.
When I start my vpn server a prompt ask me the server master key.
I've this message:
Broadcast message from root@Stargate (Thu 2020-07-09 19:26:03 UTC):
Password entry required for 'Enter Private Key Password:' (PID 2272).
Please enter password with the systemd-tty-ask-password-agent tool!
I can shorten this prompt by adding "askpass" in the server.conf
But I still need to enter the server master key to allow my vpn server to start.
When I add the password in a file to pass it with server.conf I got this error
Thu Jul 9 19:31:26 2020 us=237928 library versions: OpenSSL 1.0.2k-fips 26 Jan 2017, LZO 2.06
Thu Jul 9 19:31:26 2020 us=238254 Error opening 'Private Key' auth file: srvmkey.key: Permission denied (errno=13)
Either with "askpass srvmkey.key" in server.conf
or "--askpass srvmkey.key" in /usr/lib/systemd/system/openvpn@.service
I got the same issue.
I tryed to go around it with a bash script, so far no success.
Is there a way to disable this password ? Or can I add a line in my server.conf to allow askpass to read my password from a file ?
Thanks for your help.
Cheers
Veeh.