Small fix to downloadServerCertificate