Can't configure OpenVpn on Synology NAS to access from android phone

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
paquechu
OpenVpn Newbie
Posts: 4
Joined: Wed Jun 19, 2019 5:13 pm

Can't configure OpenVpn on Synology NAS to access from android phone

Post by paquechu » Wed Jun 19, 2019 5:40 pm

Hello

I am trying to configure openvpn in a synology NAS to be able to access with my mobile devices from the internet and I do not get it after several weeks.

I have a domain name that points to the ip of my router but it has not been assigned a digital certificate so I have decided to create a self-signed one to install on the NAS.

For the creation of the certificate I have used XCA following several tutorials but I am not able to get it; I do not know if the problem is in the creation of the certificates, in the installation of these in the NAS or in the openvpn client configuration of my mobile phone.

I have preferred to pose the problem in a pdf document given the length of my story.
Please see if anyone can detect what I am doing wrong.

In this document I have indicated the steps that I have been taking to make this configuration.

http://xurl.es/7mfmz

Thank you

User avatar
Pippin
OpenVPN Expert
Posts: 447
Joined: Wed Jul 01, 2015 8:03 am

Re: Can't configure OpenVpn on Synology NAS to access from android phone

Post by Pippin » Wed Jun 19, 2019 6:03 pm

Something wrong with the certificates:

Code: Select all

VERIFY ERROR: depth=0, error=unsupported certificate purpose:
Maybe this helps, OpenVPN templates for XCA:
https://www.synology-forum.nl/index.php ... tach=32270

paquechu
OpenVpn Newbie
Posts: 4
Joined: Wed Jun 19, 2019 5:13 pm

Re: Can't configure OpenVpn on Synology NAS to access from android phone

Post by paquechu » Wed Jun 19, 2019 6:46 pm

Hi, Pippin,
Thank you very much for your prompt response
I'm going to try these templates
Greetings

paquechu
OpenVpn Newbie
Posts: 4
Joined: Wed Jun 19, 2019 5:13 pm

Re: Can't configure OpenVpn on Synology NAS to access from android phone

Post by paquechu » Thu Jun 20, 2019 3:41 pm

Hello again
I have returned to generate the certificates using the templates that you have indicated to me, but unfortunately I still can not connect.
On this occasion the error that I get in the client part is the following:

Code: Select all

VERIFY ERROR: depth = 0, error = unable to get local issuer certificate: C = US, O = ..........
At this moment I am not clear:
- If the certificates are well created
- i have successfully exported the certificates in the correct way
- If I have successfully imported the certificates in the NAS

When I have to do the import in the NAS, three fields are requested:
- Private Key
- Certificate
- Intermediate Certificate

Of the generated certificates, I do not know which ones I should import.

Thank you very much

paquechu
OpenVpn Newbie
Posts: 4
Joined: Wed Jun 19, 2019 5:13 pm

[solved] Re: Can't configure OpenVpn on Synology NAS to access from android phone

Post by paquechu » Fri Jun 21, 2019 4:45 pm

I have been able to solve it,
The problem was the creation of the certificates and the import of these in the NAS.
With the templates indicated by Pippin I could create the certificates in the correct way and import them later.
Thank you very much for the help :-)

Post Reply