Make tunnel library actually work with X.509 certificate authentication.