cURL / Mailing Lists / curl-library / Single Mail


How to verify the peer certificate by the Certificate Thumbprint

From: Hou, LiangX <>
Date: Wed, 9 Jan 2008 17:27:55 +0800

Hi, all

  I am using curl and seeking for your helps.

If we get a peer certificate's thumbprint (a SHA-1 hash of the
certificate), is it possible to set it as an option through
"curl_easy_setopt" so as to verify the peer certificate by that?

I know there is an option number "CURLOPT_CAINFO" which can be used to
set the CA information. But what if we only get the certificate's



Received on 2008-01-09