Got this to connect to a server via tls, still failing for *large* certificates