security: Fix bug in IdentityManager.selfSign: the certificate's KeyLocator name should be certificateName.getPrefix(-1). Just call signByCertificate.