mirror of
https://github.com/curl/curl.git
synced 2026-08-26 13:23:43 +03:00
writeout: add %{certs} and %{num_certs}
Let users get the server certificate chain using the command line Closes #10019
This commit is contained in:
parent
db5f833cc7
commit
c6aa19c1da
7 changed files with 77 additions and 2 deletions
|
|
@ -1553,6 +1553,9 @@ static CURLcode single_transfer(struct GlobalConfig *global,
|
|||
if(config->ssl_ec_curves)
|
||||
my_setopt_str(curl, CURLOPT_SSL_EC_CURVES, config->ssl_ec_curves);
|
||||
|
||||
if(config->writeout)
|
||||
my_setopt_str(curl, CURLOPT_CERTINFO, 1L);
|
||||
|
||||
if(feature_ssl) {
|
||||
/* Check if config->cert is a PKCS#11 URI and set the
|
||||
* config->cert_type if necessary */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue