OpenVPN client not properly parsing synology NAS config file
Posted: Wed May 31, 2023 8:27 am
As reported here: https://community.synology.com/enu/forum/1/post/158559
The .openvpn file generated by Synology NAS isn't well digested by newer OpenVPN clients (I can't pinpoint the exact version of OpenVPN Android client that worked).
More precisely, as reported in the linked article, the last line of the .openvpn file generated by Synology is something like:
verify-x509-name 'serveraddress.synology.me' name
And OpenVPN doesn't accept that, returning a 'Peer certificate verification failure' upon connection.
If the user changes the last line to:
verify-x509-name serveraddress.synology.me name
or:
verify-x509-name "serveraddress.synology.me" name
Everything works. I tried to open a ticket on Synology NAS customer service, but they state it's a known issue and it's OpenVPN's fault.
I tried to open a ticket on OpenVPN customer service, but they refuse to fix because they only cover commercial stuff. They redirected me here.
The .openvpn file generated by Synology NAS isn't well digested by newer OpenVPN clients (I can't pinpoint the exact version of OpenVPN Android client that worked).
More precisely, as reported in the linked article, the last line of the .openvpn file generated by Synology is something like:
verify-x509-name 'serveraddress.synology.me' name
And OpenVPN doesn't accept that, returning a 'Peer certificate verification failure' upon connection.
If the user changes the last line to:
verify-x509-name serveraddress.synology.me name
or:
verify-x509-name "serveraddress.synology.me" name
Everything works. I tried to open a ticket on Synology NAS customer service, but they state it's a known issue and it's OpenVPN's fault.
I tried to open a ticket on OpenVPN customer service, but they refuse to fix because they only cover commercial stuff. They redirected me here.