X509 name was missing in TLS mode

Scripts to manage certificates or generate config files

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

Post Reply
davidsun
OpenVpn Newbie
Posts: 1
Joined: Wed Jul 29, 2020 3:38 am

X509 name was missing in TLS mode

Post by davidsun » Wed Jul 29, 2020 3:46 am

I added this line to the end of my conf file:

Code: Select all

verify-x509-name l***********y name
and I even added this param to command line while starting openvpn service like

Code: Select all

--verify-x509-name ldscompany name
but I still got this error over and over again
what am I supposed to do to avoid this error?
here is the full config file:
Server config

proto udp


lport 9999

dev tun

topology subnet

push "route 172.17.16.120 255.255.255.255"
push "dhcp-option DNS 172.17.16.1"
push "dhcp-option DNS 114.114.114.114"

user openvpn
group openvpn

cd /home/openvpn/openvpn

persist-key #重启进程不再读取key
persist-tun #重启进程不再打开tun

daemon

passtos

log-append /home/openvpn/openvpn/openvpn.log

server 10.8.0.0 255.255.255.0

#配置证书文件
dh /home/openvpn/openvpn/dh2048.pem
ca /home/openvpn/openvpn/ca.key
cert /home/openvpn/openvpn/l******y.crt
key /home/openvpn/openvpn/l******y.key


keepalive 60 120

tmp-dir /home/openvpn/openvpn/tmp


auth-user-pass-verify /home/openvpn/openvpn/authentication.sh via-file

ifconfig-pool-persist /home/openvpn/openvpn/clientips.txt
tls-auth /home/openvpn/openvpn/ta.key 0
verify-x509-name l**********y name

Thank you very much
Last edited by Pippin on Wed Jul 29, 2020 6:36 am, edited 1 time in total.
Reason: Formatting

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: X509 name was missing in TLS mode

Post by Pippin » Wed Jul 29, 2020 6:38 am

davidsun wrote:
Wed Jul 29, 2020 3:46 am
but I still got this error over and over again
We see no error.
viewtopic.php?t=22603
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

Post Reply