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
7.45k stars 350 forks source link

Bug: VPNSecure - encrypted key: illegal base64 data at input byte 26 #2301

Closed sightastic closed 3 months ago

sightastic commented 3 months ago

Is this urgent?

No

Host OS

DSM 7.2.1-69057 Update 4 (Docker)

CPU arch

x86_64

VPN service provider

Cyberghost

What are you using to run the container

docker-compose

What is the version of Gluetun

Running version latest built on 2024-05-18T18:08:57.405Z (commit 4218dba)

What's the problem 🤔

Gluetun shuts down after giving me the error shown in the logs and the title. The key and cert are working. I tested it on Ubuntu.

Share your logs (at least 10 lines)

Running version latest built on 2024-05-18T18:08:57.405Z (commit 4218dba)

🔧 Need help? https://github.com/qdm12/gluetun/discussions/new
🐛 Bug? https://github.com/qdm12/gluetun/issues/new
✨ New feature? https://github.com/qdm12/gluetun/issues/new
☕ Discussion? https://github.com/qdm12/gluetun/discussions/new
💻 Email? quentin.mcgaw@gmail.com
💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2024-05-31T13:15:02Z INFO [routing] default route found: interface eth0, gateway 172.18.0.1, assigned IP 172.18.0.2 and family v4
2024-05-31T13:15:02Z INFO [routing] local ethernet link found: eth0
2024-05-31T13:15:02Z INFO [routing] local ipnet found: 172.18.0.0/16
2024-05-31T13:15:02Z INFO [firewall] enabling...
2024-05-31T13:15:02Z INFO [firewall] enabled successfully
2024-05-31T13:15:02Z INFO [storage] merging by most recent 19425 hardcoded servers and 19425 servers read from /gluetun/servers.json
2024-05-31T13:15:03Z ERROR VPN settings: OpenVPN settings: client certificate: illegal base64 data at input byte 26
2024-05-31T13:15:03Z INFO Shutdown successful

Share your configuration

version: "3"
services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    volumes:
      - /volume2/docker/gluetun:/etc/openvpn/custom
    environment:
      - VPN_SERVICE_PROVIDER=cyberghost
      - OPENVPN_CONFIG=/etc/openvpn/custom/openvpn.ovpn
      - OPENVPN_USER=myid
      - OPENVPN_KEY=/etc/openvpn/custom/client.key
      - OPENVPN_CERT=/etc/openvpn/custom/client.crt
      - OPENVPN_PASSWORD=mypass
      - TZ=Etc/UTC
      - UPDATER_PERIOD=24h
    restart: always
github-actions[bot] commented 3 months ago

@qdm12 is more or less the only maintainer of this project and works on it in his free time. Please:

qdm12 commented 3 months ago

You're using OPENVPN_KEY and OPENVPN_CERT wrongly, these are not file paths. See https://github.com/qdm12/gluetun-wiki/blob/main/setup/options/openvpn.md

You can follow instructions at https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/openvpn-client-certificate.md

github-actions[bot] commented 3 months ago

Closed issues are NOT monitored, so commenting here is likely to be not seen. If you think this is still unresolved and have more information to bring, please create another issue.

This is an automated comment setup because @qdm12 is the sole maintainer of this project which became too popular to monitor issues closed.