add support for self signed certs, add curl error message to hidden output