Improve SSL/TLS security.

Signed-off-by: Daira Hopwood <daira@leastauthority.com>