Add ssl verification failure catch

If response code is CURLE_SSL_PEER_CERTIFICATE, retry API call with own certification, located in the data folder.