gluetun: Bug: PIA `/getSignature` `x509: certificate signed by unknown authority`

Is this urgent?

No

Host OS

docker synology

CPU arch

No response

VPN service provider

Private Internet Access

What are you using to run the container

Portainer

What is the version of Gluetun

latest

What’s the problem πŸ€”

after a watchtower update i can’t seem to port forward. I have tried a number of different PIA servers. Log shows

2022-04-21T19:09:56-04:00 ERROR [port forwarding] cannot refresh port forward data: cannot fetch port forwarding data: cannot obtain signature payload: Get β€œhttps://10.15.110.1:19999/getSignature?token=[TOKEN]”: x509: certificate signed by unknown authority 2022-04-21T19:10:29-04:00 INFO [port forwarding] retrying in 5s

which continouously loops.

Share your logs

|       |   β”œβ”€β”€ Verbosity level: 1
|       |   β”œβ”€β”€ Verbosity details level: 0
|       |   β”œβ”€β”€ Validation log level: 0
|       |   β”œβ”€β”€ System user: root
|       |   └── Allowed networks:
|       |       β”œβ”€β”€ 0.0.0.0/0
|       |       └── ::/0
|       └── DNS filtering settings:
|           β”œβ”€β”€ Block malicious: yes
|           β”œβ”€β”€ Block ads: no
|           β”œβ”€β”€ Block surveillance: no
|           └── Blocked IP networks:
|               β”œβ”€β”€ 127.0.0.1/8
|               β”œβ”€β”€ 10.0.0.0/8
|               β”œβ”€β”€ 172.16.0.0/12
|               β”œβ”€β”€ 192.168.0.0/16
|               β”œβ”€β”€ 169.254.0.0/16
|               β”œβ”€β”€ ::1/128
|               β”œβ”€β”€ fc00::/7
|               β”œβ”€β”€ fe80::/10
|               β”œβ”€β”€ ::ffff:7f00:1/104
|               β”œβ”€β”€ ::ffff:a00:0/104
|               β”œβ”€β”€ ::ffff:a9fe:0/112
|               β”œβ”€β”€ ::ffff:ac10:0/108
|               └── ::ffff:c0a8:0/112
β”œβ”€β”€ Firewall settings:
|   └── Enabled: yes
β”œβ”€β”€ Log settings:
|   └── Log level: INFO
β”œβ”€β”€ Health settings:
|   β”œβ”€β”€ Server listening address: 127.0.0.1:9999
|   β”œβ”€β”€ Target address: cloudflare.com:443
|   └── VPN wait durations:
|       β”œβ”€β”€ Initial duration: 5s
|       └── Additional duration: 5s
β”œβ”€β”€ Shadowsocks server settings:
|   └── Enabled: no
β”œβ”€β”€ HTTP proxy settings:
|   └── Enabled: no
β”œβ”€β”€ Control server settings:
|   β”œβ”€β”€ Listening address: :8000
|   └── Logging: yes
β”œβ”€β”€ OS Alpine settings:
|   β”œβ”€β”€ Process UID: 1000
|   β”œβ”€β”€ Process GID: 1000
|   └── Timezone: America/New_York
β”œβ”€β”€ Public IP settings:
|   β”œβ”€β”€ Fetching: every 12h0m0s
|   └── IP file path: /tmp/gluetun/ip
└── Version settings:
    └── Enabled: yes
2022-04-21T19:07:47-04:00 INFO [routing] default route found: interface eth0, gateway 172.27.0.1 and assigned IP 172.27.0.2
2022-04-21T19:07:47-04:00 INFO [routing] adding route for 0.0.0.0/0
2022-04-21T19:07:47-04:00 INFO [firewall] setting allowed subnets...
2022-04-21T19:07:47-04:00 INFO [routing] default route found: interface eth0, gateway 172.27.0.1 and assigned IP 172.27.0.2
2022-04-21T19:07:47-04:00 INFO TUN device is not available: open /dev/net/tun: no such file or directory; creating it...
2022-04-21T19:07:47-04:00 INFO [pprof] http server listening on [::]:6060
2022-04-21T19:07:47-04:00 INFO [http server] http server listening on [::]:8000
2022-04-21T19:07:47-04:00 INFO [dns over tls] using plaintext DNS at address 1.1.1.1
2022-04-21T19:07:47-04:00 INFO [healthcheck] listening on 127.0.0.1:9999
2022-04-21T19:07:47-04:00 INFO [firewall] allowing VPN connection...
2022-04-21T19:07:47-04:00 INFO [openvpn] OpenVPN 2.5.6 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Mar 24 2022
2022-04-21T19:07:47-04:00 INFO [openvpn] library versions: OpenSSL 1.1.1n  15 Mar 2022, LZO 2.10
2022-04-21T19:07:47-04:00 INFO [openvpn] CRL: loaded 1 CRLs from file -----BEGIN X509 CRL-----
2022-04-21T19:07:47-04:00 INFO [openvpn] MIIDWDCCAUAwDQ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FKeEMO30FQL7BZyo37GFU+q1WPCplVZgCP9hC8Rn5K2+f6KLFo5bhtowSmu+GY1yZtg+RTtsA=
2022-04-21T19:07:47-04:00 INFO [openvpn] -----END X509 CRL-----
2022-04-21T19:07:47-04:00 INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]91.90.124.17:1197
2022-04-21T19:07:47-04:00 INFO [openvpn] UDP link local: (not bound)
2022-04-21T19:07:47-04:00 INFO [openvpn] UDP link remote: [AF_INET]91.90.124.17:1197
2022-04-21T19:07:47-04:00 WARN [openvpn] 'link-mtu' is used inconsistently, local='link-mtu 1569', remote='link-mtu 1554'
2022-04-21T19:07:47-04:00 WARN [openvpn] 'keysize' is used inconsistently, local='keysize 256', remote='keysize 128'
2022-04-21T19:07:47-04:00 WARN [openvpn] 'comp-lzo' is present in remote config but missing in local config, remote='comp-lzo'
2022-04-21T19:07:47-04:00 INFO [openvpn] [douglas403] Peer Connection Initiated with [AF_INET]91.90.124.17:1197
2022-04-21T19:07:47-04:00 INFO [openvpn] TUN/TAP device tun0 opened
2022-04-21T19:07:47-04:00 INFO [openvpn] /sbin/ip link set dev tun0 up mtu 1500
2022-04-21T19:07:47-04:00 INFO [openvpn] /sbin/ip link set dev tun0 up
2022-04-21T19:07:47-04:00 INFO [openvpn] /sbin/ip addr add dev tun0 10.15.110.9/24
2022-04-21T19:07:47-04:00 INFO [openvpn] UID set to nonrootuser
2022-04-21T19:07:47-04:00 INFO [openvpn] Initialization Sequence Completed
2022-04-21T19:07:47-04:00 INFO [dns over tls] downloading DNS over TLS cryptographic files
2022-04-21T19:07:48-04:00 INFO [healthcheck] healthy!
2022-04-21T19:07:49-04:00 INFO [dns over tls] downloading hostnames and IP block lists
2022-04-21T19:07:56-04:00 INFO [healthcheck] unhealthy: cannot dial: dial tcp4: i/o timeout
2022-04-21T19:07:57-04:00 INFO [dns over tls] init module 0: validator
2022-04-21T19:07:57-04:00 INFO [dns over tls] init module 1: iterator
2022-04-21T19:07:57-04:00 INFO [dns over tls] start of service (unbound 1.13.2).
2022-04-21T19:07:57-04:00 INFO [dns over tls] generate keytag query _ta-4a5c-4f66. NULL IN
2022-04-21T19:07:58-04:00 INFO [dns over tls] ready
2022-04-21T19:07:58-04:00 INFO [healthcheck] healthy!
2022-04-21T19:07:59-04:00 INFO [vpn] You are running on the bleeding edge of latest!
2022-04-21T19:07:59-04:00 INFO [vpn] VPN gateway IP address: 10.15.110.1
2022-04-21T19:08:00-04:00 ERROR [port forwarding] cannot refresh port forward data: cannot fetch port forwarding data: cannot obtain signature payload: Get "https://10.15.110.1:19999/getSignature?token=xxxxxx": x509: certificate signed by unknown authority
2022-04-21T19:08:00-04:00 INFO [port forwarding] retrying in 5s
2022-04-21T19:08:00-04:00 INFO [ip getter] Public IP address is 91.90.124.17 (Isle of Man, Douglas, Douglas)
2022-04-21T19:08:06-04:00 ERROR [port forwarding] cannot refresh port forward data: cannot fetch port forwarding data: cannot obtain signature payload: Get "https://10.15.110.1:19999/getSignature?token=xxxxxx": x509: certificate signed by unknown authority
2022-04-21T19:08:06-04:00 INFO [port forwarding] retrying in 5s

Share your configuration

version: "3"
services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    cap_add:
      - NET_ADMIN
    volumes:
      - /volume1/docker/gluetun:/gluetun
    environment:
      - VPN_SERVICE_PROVIDER=private internet access
      - OPENVPN_USER=[USER]
      - OPENVPN_PASSWORD=[PASSWORD]
      - SERVER_REGIONS=Isle of Man
      - TZ=America/New_York
      - PRIVATE_INTERNET_ACCESS_VPN_PORT_FORWARDING=on
      - PRIVATE_INTERNET_ACCESS_VPN_PORT_FORWARDING_STATUS_FILE=/forwarded_port


    restart: unless-stopped

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 22 (10 by maintainers)

Most upvoted comments

It is working on my end too. Just launched everything, no problem.

@qdm12 Thank you very much! Also to @tonytamps for supporting!

Appears to be working for me. I switched the Unraid container back to :latest, updated and successfully launched. Assuming that’s all good, I’ve changed my credentials. Happy to change back again if necessary.

Thanks @qdm12 - hopefully someone else can confirm it’s working for them too.

db91625de45c90935de1bac3897b3dfcfcccad19 should fix it (I tried on one server only), please let me know the outcome. It appears now the PIA server names can now be validated using the OS certificates and not with their custom certificate (unlike before where it was the opposite) - although I still have no clue how it works on v3.28.2.

I also fixed the port forwarding β€˜run loop’ not exiting properly on container shutdown in 2537cd5271a205122e28d77567c61034ac0cb8af

Thanks @tonytamps that expedited resolution quite a bit πŸ˜„ ~You can change your credentials now πŸ‘~ Maybe let’s wait for this issue to be closed if that’s ok with you.

Again please let me know if it works and I’ll do a v3.29.0 release, this is the last blocking issue πŸ˜‰