security: implement IdentityManager::selfSign.