GL iNET OpenVPN Client connection without password prompt

Model GL-AR750S

I have been using my Raspberry Pi as a OPENVPN server for quite some time. I have Windows PCs and iOS clients and they connect without an issue. I’m trying to get my GL.iNET travel router to connect but it fails with:

neither stdin nor stderr are a tty device and you have neither a controlling tty nor systemd - can’t ask for ‘Enter Private Key Password:’. If you used --daemon, you need to use --askpass to make passphrase-protected keys work, and you can not use --auth-nocache.

How do I connect without using askpass? Here are my .ovpn file switches:

dev tun
proto udp
remote 80
resolv-retry infinite
key-direction 1
remote-cert-tls server
tls-version-min 1.2
verify-x509-name server name
cipher AES-256-CBC
auth SHA256
verb 1

certs removed

add one line manually

1 Like

Thanks for the response however I don’t want to use a password. I want it to behave exactly like my other clients using the certs…

Because of the certificate file which is generated by Raspberry Pi is encrypted, you have to input a passphrase to decrypt it.

Just do not use a private key passphrase when you generate the ovpn.

1 Like

I had the same problem and adding the askpass line fixed it.