X509 reader and writer.

WWW: https://github.com/vincenthz/hs-certificate
