From Client.OVPN to ca.CRT

Scripts to manage certificates or generate config files
Post Reply
Renate
OpenVpn Newbie
Posts: 2
Joined: Thu Nov 21, 2019 6:50 pm

From Client.OVPN to ca.CRT

Post by Renate » Thu Nov 21, 2019 6:58 pm

Hi

I have an Asus Router (RT-AC66U) which is configured as OpenVPN Server. I was able to connect with different clients trough VPN to my hone.

Now I wish to install the VPN CLient on a Qnap NAS which is located outside of my home.

My problem is, that the Nas requires a ca.crt file. But my Asus Router delivers me only a client.ovpn file.

Can I only delete the not needet parts (Notepad ++) out of the client.ovpn file and save it as ca.crt?

I hope you see my problem and can help me (sorry for my english, its not my language)

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

Re: From Client.OVPN to ca.CRT

Post by Pippin » Thu Nov 21, 2019 7:13 pm

Yes you can, make sure to use a Unix capable text editor.

Renate
OpenVpn Newbie
Posts: 2
Joined: Thu Nov 21, 2019 6:50 pm

Re: From Client.OVPN to ca.CRT

Post by Renate » Thu Nov 21, 2019 7:45 pm

Hi Pippin

Thanks for your input.

I tried to do with the Sublime Text editor and save the file as ca.crt. Unfortunately without success.

What do I have to erease out of the .ovpn file?

Everything befort <ca> and all after </ca>?

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

Re: From Client.OVPN to ca.CRT

Post by Pippin » Thu Nov 21, 2019 8:00 pm

You would copy everything between <ca> </ca> and paste into ca.crt.
Then delete everything between and including <ca> </ca>.

Post Reply