How to download website certificate in PHP?

General discussions related to php

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Tue Jul 08, 2014 6:19 am

How to download website certificate in PHP?

Postby SilverQuark » Tue Jul 08, 2014 6:24 am

Hello everyone!

I'm new to PHP (and to this forum, too). My final goal is to make a script that recognises which websites have an Extended Validation certificate type and which ones do not. Except I don't know how to do it. For starters, I should download the X.509 certificate and analyse it (I use both the OpenSSL and cURL PHP extensions), but how?

DAYS of googling have brought me absolutely nothing. Any tips are appreciated. I can provide more detail if need be. I'd provide source code if I had any but I really don't know where to start... Thanks!

Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 2 guests