security: Fix bug in makeSignatureByCertificate: set the key name to certificateName.getPrefix(-1).