Bug: VPNSecure - encrypted key: illegal base64 data at input byte 26
sightastic opened this issue Β· comments
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
@qdm12 is more or less the only maintainer of this project and works on it in his free time.
Please:
- do not ask for updates, be patient
- π the issue to show your support instead of commenting
@qdm12 usually checks issues at least once a week, if this is a new urgent bug,
revert to an older tagged container image
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
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.