Simplify TLS testing in transport pkg

We learned in fleet [0] that the x509 parsing is extremely slow. Faking this function out saves a lot of test time and helps test the actual codepaths we care about rather than some library we have not read through.

[0] https://github.com/coreos/fleet/blob/master/etcd/client.go#L364