cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Retrieve server SSL certificate

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sat, 23 Oct 2004 09:41:58 +0200 (CEST)

On Fri, 22 Oct 2004, Niko Nelissen wrote:

> From within my PHP code (using CURL or another library) I would like to
> retrieve the details of an SSL certificate of an HTTPS website. How can I
> request the details of an SSL certificate of an HTTPS website, such as the
> expiry date of the certificate, to which company it was issued etc. ?

libcurl (and thus PHP/CURL) provides no such function. You are probably forced
to use OpenSSL directly.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-10-23