security (internal): In IdentityManager, added makeSignatureByCertificate and use it in signByCertificate.