curl-library
Order of certificates in curl_certinfo
From: Martin Galvan via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 25 Oct 2018 16:20:49 -0300
Date: Thu, 25 Oct 2018 16:20:49 -0300
Hi all,
When using the CURLINFO_CERTINFO, the documentation says that a struct
curl_certinfo gets populated with the peer's certificate chain, and
the certs are accessible through the 'certinfo' member, which is an
array. I'm wondering whether this array is "ordered", in that
certinfo[num_of_certs -1] would return the top cert in the chain (be
it the root cert or the last intermediate). If not, what would be a
good way to detect which cert is the top, other than sorting them by
Subject/Issuer?
Thanks.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-10-25