Data source: http://rosettacode.org/wiki/HTTPS/Client-authenticated