That's all worked fantastically. I do however have some security concerns regarding the use cURL. I've done some research and ascertained that the hosting service should ensure that the PHP installation on the server has an up to date CA root certificate bundle.
Apparently the path then need to be set in php.ini using something like this:
curl.cainfo=PATH/TO/FILE
But that's something for the server guys to do.
I understand there's a couple of options I need to use in my curl request to check the ssl certificate is valid before sending any sensitive data and avoid a man in the middle attack where possible. Now these are the options I have set at the moment:
I've found the following and wonder if the following is the correct usage if I just add them? Also what is the correct method of testing? I wanna make this as bulletrpoof as possible:
Reviews are opinion genius.
idc about metric for success, I wasn't claiming it was a success.
It's pretty clear what this is about for you when you mix in anti-sjw/gamergate culture war rot and completely ignore, or are blind to, the core point I was making.
Question
Axel
This is a follow up from this particular thread:
http://www.neowin.ne...age-to-another/
That's all worked fantastically. I do however have some security concerns regarding the use cURL. I've done some research and ascertained that the hosting service should ensure that the PHP installation on the server has an up to date CA root certificate bundle.
Here?s info on installing it:
http://curl.haxx.se/.../caextract.html
Apparently the path then need to be set in php.ini using something like this:
curl.cainfo=PATH/TO/FILE
But that's something for the server guys to do.
I understand there's a couple of options I need to use in my curl request to check the ssl certificate is valid before sending any sensitive data and avoid a man in the middle attack where possible. Now these are the options I have set at the moment:
$ch = curl_init('https://www.url.com/index.php'); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch);I've found the following and wonder if the following is the correct usage if I just add them? Also what is the correct method of testing? I wanna make this as bulletrpoof as possible:
Many thanks for the help!
Alex
Link to comment
https://www.neowin.net/forum/topic/1134774-php-curl-security-concerns/Share on other sites
1 answer to this question
Recommended Posts