Fixing server SSL certificate validation