http://stackoverflow.com/questions/11308270/using-curl-in-php-with-ca-certificate-client-certificate-and-private-key-in-s