Get certificate info for a SNI target with CURLOPT_SSL_VERIFYHOST=0? #9219
-
|
To get the root CA root for for a remote server, I am using CURLINFO_CERTINFO CURLOPT_SSL_VERIFYHOST = "0" disables SNI as documented. SNI works well with But the whole purpose of my operation is to retrieve a self signed or an unknown root. Any idea how I could work-around it? Thanks for any tip! Daniel |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Found a way to get the root also with SNI enabled.
Checking the last cert I get if Subject = Issuer looping thru the results I get from
Set the root via the following option to the root as PEM received from the first call: |
Beta Was this translation helpful? Give feedback.
Found a way to get the root also with SNI enabled.
Checking the last cert I get if Subject = Issuer looping thru the results I get from
CURLINFO_CERTINFOSet the root via the following option to the root as PEM received from the first call: