Fix the cert generation - fixes #80  [do not merge]