Add hash option for createCertificate(), default to sha256

https://github.com/andris9/pem/issues/27