Added date format to certificate creation, fixes #40