Page 1 of 1

OpenVPN client , could not read Auth username from stdin

Posted: Mon Sep 13, 2010 4:20 pm
by strukelj
I have an issue using Windows OpenVPN client as a service with certificate + username/password .

I'm reading this howto : http://openvpn.se/files/howto/openvpn-h ... admin.html
, I've imported cert/key to System account with MMC snap-in , icon goes to green , but my log looks like this :
---
Mon Sep 13 17:44:32 2010 OpenVPN 2.1.3 i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on Aug 20 2010
Enter Auth Username:Mon Sep 13 17:44:32 2010 ERROR: could not read Auth username from stdin
Mon Sep 13 17:44:32 2010 Exiting
---

My client.ovpn :
---
client
dev tun
proto tcp
remote xxx.xxx.xxx.xxx 3260
resolv-retry infinite
nobind
persist-key
persist-tun
ca ..\\config\\ca.crt
cert ..\\config\\openvpn.crt
key ..\\config\\openvpn.key
auth-retry interact
auth-user-pass stdin
verb 3
link-mtu 1559
keysize 256
pull route
route 192.168.22.0 255.255.255.0 192.168.101.1
route 192.168.201.0 255.255.255.0 192.168.101.1
route 192.168.200.0 255.255.255.0 192.168.101.1
dhcp-option DNS 192.168.201.25
---

I've also tried with
cryptoapicert "THUMB:xx xx xx ...."

instead of
cert ..\\config\\openvpn.crt
key ..\\config\\openvpn.key

But with the same error log .

What do I have to do to get a GUI prompt for username , password and key password when using it as a service?

Otherwise it works fine in "non-service" mode . I'm considering using tools like Cpau or Lsrunas to run it as Administrator .

Re: OpenVPN client , could not read Auth username from stdin

Posted: Mon Sep 13, 2010 11:29 pm
by krzee
I think you can not use pass protected key files when running openvpn as a service

Re: OpenVPN client , could not read Auth username from stdin

Posted: Thu Sep 23, 2010 4:50 am
by strukelj
I'm now using program called CPAU for running openvpn-gui as administrator successfuly .