Correct bug in non shotnget mode (certificate on server)