var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
php curl ssl
I'm trying to use CURL via PHP to connect to a url which uses HTTPS.
According to the curl docs http://curl.haxx.se/docs/sslcerts.html , at step 2, you must get a CA cert.
How does one obtain their shared host's CA cert?
In their download they have a CA file. Just download the archilve and find the 'curl-ca-bundle.crt' file inside and use that!
ive discovered that while using php's curl libraries and ssl, the problem is, im on a shared host. and the domain name is different to the ssl certificate which is used with ssl.
so im stuck now what to do! any advise?
Purchase a certificate from a Certificate Authority like GeoTrust. Then have your certificate installed onto your server. You will have to have an extra IP address for this. Tell your host to help you out.
Visit http://www.SSLForums.com/ if you have anymore questions
You don't need to purchase a certificate just for that.
Add these options to your curl object (here $ch):
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
and it should work.
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my
Signal > Noise