Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-13-2020, 09:36 AM   #1
Registered: Aug 2014
Location: Hungary
Distribution: Mint
Posts: 98

Rep: Reputation: Disabled
embed into ovpn client file

Hi, I'd like to inline embed the ca.crt's data into the client.conf file like this:

cat base.conf 
<(echo -e '<ca>') ~/client-configs/keys/ca.crt <(echo -e '</ca>') 
<(echo -e '<cert>') ~/client-configs/keys/client1.crt <(echo -e '</cert>n')
<(echo -e '<key>') ~/client-configs/keys/client1.key <(echo -e '</key>n')
<(echo -e '<tls-auth>') ~/etc/openvpn/ta.key <(echo -e '</tls-auth>') >> client1.ovpn
But I got this error:
bash: /dev/fd/63: Permission denied
I did it as root. Obviously there us something going on wrong the way I try to embed in. Do you know how to do it properly?

Last edited by kzo81; 01-13-2020 at 09:43 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bash cronjob script to kill openvpn and run client.ovpn toxine Linux - General 14 06-10-2018 09:34 AM
No internet connection after .ovpn file run (OpenVPN) snovosel112811 Linux - Server 2 01-21-2017 09:51 AM
using .ovpn file on Gadmin-OpenVPN-Client LadyIris Linux - Networking 1 06-02-2015 11:04 PM
selinux in fedora conflict with ovpn hnml Linux - Newbie 1 11-10-2014 07:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration