OpenVPN works on Android but not in Windows

Started by ejvl, February 09, 2022, 09:07:32 AM

Previous topic - Next topic
Hi,
Yesterday i've installed Opnsense on my NUC and all works fine, great product.
I've issues with OpenVPN.
I've followed this instruction: https://www.youtube.com/watch?v=ocGAcZD8qYo

Now, I've export the setting, VPN, Client Export, export the settings/certificatie from the linked user.


I've imported this file in my Android phone, installed OpenVPN and all works fine, I can connect when I'm not on WIFI, can reach my LAN-devices.

Now I've a Windows 10 machine, remote, install OpenVPN, import exact the same file but cannot connect.

Mon Feb  7 05:38:24 2022 SIGUSR1[soft,tls-error] received, process restarting
Mon Feb  7 05:43:24 2022 TCP/UDP: Preserving recently used remote address: [AF_INET]xxxxxxxx:1194
Mon Feb  7 05:43:24 2022 UDP link local (bound): [AF_INET][undef]:0
Mon Feb  7 05:43:24 2022 UDP link remote: [AF_INET]xxxxxxxxx:1194
Mon Feb  7 05:43:24 2022 VERIFY ERROR: depth=1, error=certificate is not yet valid: C=NL, ST=xxx, L=xxx, O=xxx, emailAddress=xxx, CN=internal-ca, serial=0
Mon Feb  7 05:43:24 2022 OpenSSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Mon Feb  7 05:43:24 2022 TLS_ERROR: BIO read tls_read_plaintext error
Mon Feb  7 05:43:24 2022 TLS Error: TLS object -> incoming plaintext read error
Mon Feb  7 05:43:24 2022 TLS Error: TLS handshake failed
Mon Feb  7 05:43:24 2022 SIGUSR1[soft,tls-error] received, process restarting


I've turned off the Windows firewall but no changes.

The file I've exported from OPNsense is a single .ovpn file with the certificates included and the file is correct I think because it works fine on my Android phone.

Any idea?

Thanks

I've solved it, the time in Windows was wrong....