curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

CURLINFO_CERTINFO attributes names

From: Jicea via curl-library <curl-library_at_lists.haxx.se>
Date: Mon, 8 Dec 2025 13:56:04 +0000

Hello all,

I try to get the subject alternative names (SAN) from the connection certificate using CURLINFO_CERTINFO.

On macOS, I can see, for a given host, something like: "X509v3 Subject Alternative Name:DNS:hurl.dev"

In the curl doc, it's written

> The items in each list varies depending on the SSL backend and the certificate.

Does it mean that the "key" attribute value for SAN (i.e "X509v3 Subject Alternative Name") is depending on the SSL backend?

In this case, is there a way to get the SAN value, independently on the SSL backend?

Thanks!

Jicea

____________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2025-12-08