Add hash option for createCertificate(), default to sha256
Merge pull request #29 from scaret/add/hash-create-certificate

Add hash option for createCertificate(), default to sha256