From Client.OVPN to ca.CRT

Scripts to manage certificates or generate config files

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

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
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

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.
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

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
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

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>.
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