cpr icon indicating copy to clipboard operation
cpr copied to clipboard

PKCS#12 files for client authentication

Open ioxuy opened this issue 3 years ago • 1 comments

Is your feature request related to a problem?

curl built with SecureTransport

https://github.com/curl/curl/blob/master/lib/vtls/sectransp.c#L1896 SSL: The Security framework only supports loading identities that are in PKCS#12 format.

Possible Solution

https://github.com/libcpr/cpr/blob/master/cpr/session.cpp#L495 If cert_type is p12 add CURLOPT_KEYPASSWD

Alternatives

No response

Additional Context

No response

ioxuy avatar Nov 17 '22 14:11 ioxuy

Thanks for the suggestion. Would you like to create a PR for it?

COM8 avatar Nov 17 '22 14:11 COM8