OpenVPN client , could not read Auth username from stdin

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
strukelj
OpenVpn Newbie
Posts: 2
Joined: Mon Sep 13, 2010 3:33 pm

OpenVPN client , could not read Auth username from stdin

Post by strukelj » Mon Sep 13, 2010 4:20 pm

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 .
Last edited by strukelj on Wed Sep 15, 2010 9:03 am, edited 1 time in total.

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

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

Post by krzee » Mon Sep 13, 2010 11:29 pm

I think you can not use pass protected key files when running openvpn as a service

strukelj
OpenVpn Newbie
Posts: 2
Joined: Mon Sep 13, 2010 3:33 pm

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

Post by strukelj » Thu Sep 23, 2010 4:50 am

I'm now using program called CPAU for running openvpn-gui as administrator successfuly .

Post Reply