qdm12 / gluetun

VPN client in a thin Docker container for multiple VPN providers, written in Go, and using OpenVPN or Wireguard, DNS over TLS, with a few proxy servers built-in.
https://hub.docker.com/r/qmcgaw/gluetun
MIT License
8.03k stars 371 forks source link

cyberghost 'cannot decode PEM encoded block' #1106

Closed dethnass closed 2 years ago

dethnass commented 2 years ago

Hello, I couldn't find a solution. I tried both method for client key and client certificate.

As you say "Alternatively, you can also place the base64 part in the environment variable OPENVPN_CERT, as a single line (so remove the new line characters)."

I am getting an error like below.

2022-08-17T23:05:37Z INFO [routing] default route found: interface eth0, gateway 172.31.0.1 and assigned IP 172.31.0.2 2022-08-17T23:05:37Z INFO [routing] local ethernet link found: eth0 2022-08-17T23:05:37Z INFO [routing] local ipnet found: 172.31.0.0/16 2022-08-17T23:05:37Z INFO [firewall] enabling... 2022-08-17T23:05:37Z INFO [firewall] enabled successfully 2022-08-17T23:05:38Z INFO [storage] merging by most recent 11432 hardcoded servers and 11432 servers read from /gluetun/servers.json 2022-08-17T23:05:38Z ERROR VPN settings: OpenVPN settings: client certificate: cannot decode PEM encoded block 2022-08-17T23:05:38Z INFO Shutdown successful

qdm12 commented 2 years ago

Was that an error on your side or a documentation problem? Thanks!