mcarleio / my-jdownloader2-headless

An image for JDownloader 2 in headless mode for use with my.jdownloader.org, combined with an optional to use OpenVPN client.
3 stars 1 forks source link

openvpn ca cert key #11

Closed riourik closed 1 year ago

riourik commented 1 year ago

Hi I use cyberghost vpn and after create the openvpn and start the container I have that in log

spawn /openvpn.sh Options error: --ca fails with 'ca.crt': No such file or directory (errno=2) Options error: --cert fails with 'client.crt': No such file or directory (errno=2) Sat Nov 4 12:53:32 2023 us=420844 WARNING: cannot stat file 'client.key': No such file or directory (errno=2) Options error: --key fails with 'client.key': No such file or directory (errno=2) Options error: Please correct these errors. Use --help for more information. OpenVPN stopped

the crt and key files are in the ovpn folder

riourik commented 1 year ago

I finished to figure it have to edit *.ovpn and change ca ca.crt to ca /opt/jd/cfg/ovpn/ca.crt same for ccert and key

riourik commented 1 year ago

Just edit *.ovpn

ca ca.crt

cert client.crt

key client.key

to

ca /opt/jd/cfg/ovpn/ca.crt

cert /opt/jd/cfg/ovpn/client.crt

key /opt/jd/cfg/ovpn/client.key