Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

PHP for checking SSL Certificate Authority

Status
Not open for further replies.

Nexus

DNF Addict
Legacy Exclusive Member
Joined
Sep 11, 2002
Messages
1,495
Reaction score
0
I'm not clear on the technical issues involved, but does anyone know if it is possible to read information about a website's SSL certificate via PHP (with or without cURL?)

Basically, when I get to a secure website via http, regardless of whether I make a successful *secure* connection, I can view information from that website in my browser about the issuing authority, when the certificate expires, etc, etc (on IE, its by double clicking on the lock in the corner).

Does anyone know if it is possible to get this information via PHP? Basically I want to create a scripting class that can automatically check a website and tell me what SSL cert it currently uses (if any), who is the issuing authority (Verisign, Comodo, etc) and when that cert expires. If I get the information in some discernable format, I'd just parse out what I need.

I'm not looking to actually *make* a secure connection, but to "check" information about the host server in question. I've checked the headers, and did not see anything there. I know fopen makes vanilla tcp connections, so I'm not clear if I can get anywhere with that.

Thanks,
~ Nexus
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Premium Members

Upcoming events

Latest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom