Fixed a bug in createIdentityCertificate method in IdentityManager