Posted on 2021-09-29
A scary thing happened recently. Everyone at work lost access to our companies VPN. All of our applications run within an internal network hosted on AWS and most of my coworkers need to connect in order to do their jobs. Sadly, this VPN was setup by a previous employee who didn't document anything.
Immediately I checked my own connection TunnelBlick and found the following exception:
2021-09-15 14:25:13.798239 VERIFY OK: depth=0, CN=aws-client-vpn-clear.clearui.com 2021-09-15 14:26:13.435099 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity) 2021-09-15 14:26:13.435885 TLS Error: TLS handshake failed 2021-09-15 14:26:13.436066 SIGUSR1[soft,tls-error] received, process restarting
Looks like there was an issue with the handshake for our TLS encryption... or so I thought. Ends up this is a side effect of our Certificate Revocation List expiring!
A CRL is a list of certificates that are revoked before their expiration date.
For example, each individual employee at a company has a certificate that grants them access to the companies cloud servers. One day, a coworker decides to quit. If their certificate is still valid then they can continue to login to the companies servers and possibly abuse that access if their certificate has not yet expired. To address this, we add their certificate to a list that prevent them from accessing your companies servers anymore. Then when their cert expires, it will be removed from the CRL as it posses no more threat.
Once the steps above are completed, you should be able to connect to your VPN Endpoint again.
Update: Looks like AWS already has this process documented:
Return to the homepage ⤾