downloading certificates

Security issues related to php and mysql usage. How to make your code secure? Security measures and configurations? It's all in here!

Moderators: macek, egami, gesf

sagimann
New php-forum User
New php-forum User
Posts: 2
Joined: Thu Mar 08, 2012 4:52 am

downloading certificates

Postby sagimann » Thu Mar 08, 2012 4:55 am

Hi,
How do I get certificate (and the certificate chain) given some URL?
I noticed that I get see this info when runnning curl_exec after:
curl_setopt($ch, CURLOPT_CERTINFO, TRUE);
curl_setopt($ch, CURLOPT_VERBOSE, TRUE);

but the output is very non-structured, I am looking for something a bit more modeled (like an array, etc) that I can parse in code...

thanks.

Return to “PHP & MySQL Security”

Who is online

Users browsing this forum: No registered users and 1 guest