Implements #32, Suport for TLS v1.2 (needs testing)