First off, major kudos to @bartversluijs for developing the helm chart for openbalena. We’ve been corresponding via email and have decided to take support matters to the forum to benefit everyone else who might be using it.
I am using cert-manager / letsencrypt, and I’m running into an issue where the VPN is not accepting connections due to self signed certs (see error from the device openvpn logs below). This keeps repeating and the device fails to connect / report online. I’ve followed the helm instructions to restart the haproxy ingress container but no luck - same error occurs. It seems it’s not taking the letsencrypt certs.
I know the rest of the app is taking them as I’m able to curl the https://api…/ping endpoint with no problem, certs are good there. So for some reason VPN is not picking them up.
I saw on another thread relating to this same issue, the advice was to delete the config folder with each build and run the openbalena quickstart script using -c, which I tried and it didn’t work for me, with or without the haproxy ingress restart.
Any ideas?
Mar 03 19:43:38 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:38 2022 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Mar 03 19:43:38 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:38 2022 TCP/UDP: Preserving recently used remote address: [AF_INET]xxx:443
Mar 03 19:43:38 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:38 2022 Socket Buffers: R=[131072->131072] S=[16384->16384]
Mar 03 19:43:38 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:38 2022 Attempting to establish TCP connection with [AF_INET]xxx:443 [nonblock]
Mar 03 19:43:39 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:39 2022 TCP connection established with [AF_INET]xxx:443
Mar 03 19:43:39 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:39 2022 TCP_CLIENT link local: (not bound)
Mar 03 19:43:39 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:39 2022 TCP_CLIENT link remote: [AF_INET]xxx:443
Mar 03 19:43:39 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:39 2022 TLS: Initial packet from [AF_INET]xxx:443, sid=a98d146f c43f4a89
Mar 03 19:43:39 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:39 2022 VERIFY ERROR: depth=1, error=self signed certificate in certificate chain: CN=vpn-ca.xxx
Mar 03 19:43:39 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:39 2022 OpenSSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Mar 03 19:43:39 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:39 2022 TLS_ERROR: BIO read tls_read_plaintext error
Mar 03 19:43:39 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:39 2022 TLS Error: TLS object -> incoming plaintext read error
Mar 03 19:43:39 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:39 2022 TLS Error: TLS handshake failed
Mar 03 19:43:39 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:39 2022 Fatal TLS error (check_tls_errors_co), restarting
Mar 03 19:43:39 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:39 2022 SIGUSR1[soft,tls-error] received, process restarting
Mar 03 19:43:39 bbb15d7 openvpn[67074]: Thu Mar 3 19:43:39 2022 Restart pause, 10 second(s)