Fixed bug in loading cacert.pem file.