I tried regenerating other certifications but it still won't work. Here is my server config and my log file.
server.conf
Code: Select all
port 1194 #- port
proto udp #- protocol
dev tap0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
reneg-sec 0
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
plugin /usr/lib64/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login #- Comment this line if you are using FreeRADIUS
#plugin /etc/openvpn/radiusplugin.so /etc/openvpn/radiusplugin.cnf #- Uncomment this line if you are using FreeRADIUS
client-cert-not-required
username-as-common-name
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "route 10.0.0.0 255.255.255.0"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status 1194.log
verb 3
Code: Select all
Feb 19 19:38:50 centos openvpn[2894]: x.x.x.x:22177 TLS: Initial packet from [AF_INET]X.X.X.X:22177, sid=618a5ae5 2e$
Feb 19 19:38:52 centos openvpn[2894]: x.x.x.x:22177 TLS Error: Auth Username/Password was not provided by peer
Feb 19 19:38:52 centos openvpn[2894]: X.X.X.X:22177 TLS Error: TLS handshake failed
Feb 19 19:38:52 centos openvpn[2894]: X.X.X.X:22177 SIGUSR1[soft,tls-error] received, client-instance restarting
Feb 19 19:39:50 centos openvpn[2894]: X.X.X.X:22177 TLS: Initial packet from [AF_INET]X.X.X.X:22177, sid=4c12dd32 d7$
Feb 19 19:39:52 centos openvpn[2894]: X.X.X.X:22177 TLS Error: Auth Username/Password was not provided by peer
Feb 19 19:39:52 centos openvpn[2894]: X.X.X.X:22177 TLS Error: TLS handshake failed
Feb 19 19:39:52 centos openvpn[2894]: X.X.X.X:22177 SIGUSR1[soft,tls-error] received, client-instance restarting
Code: Select all
management /data/data/de.blinkt.openvpn/cache
mgmtsocket unix
management-client
management-query-passwords
management-hold
setenv IV_GUI_VER "de.blinkt.openvpn 0.6.8"
machine-readable-output
client
verb 4
connect-retry-max 5
connect-retry 5
resolv-retry 60
dev tun
remote x.x.x.x 1194 upd
<ca>
</ca>
<key>
</key>
<cert>
</cert>
comp-lzo
redirect-private block-local
route-ipv6 ::/0
route 0.0.0.0 0.0.0.0 vpn_gateway