#1 2021-05-22 02:28:28

keinn
Member
Registered: 2014-10-20
Posts: 103

how to use a CACert file with TWinHttp Client?

some third party api need CAcertification, like cert.p12 ,cert.pem,cert_key.pem,
like some payout api,
is it a way to use CACert with TWinHttp Client?

Offline

#2 2021-05-23 08:46:44

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: how to use a CACert file with TWinHttp Client?

TCurlHTTP can use be notified to use a client certificate during TLS handshake by call  TCurlHTTP.UseClientCertificate

In case of TWinHTTP it is not implemented,  TWinHttp.InternalSendRequest force WINHTTP_OPTION_CLIENT_CERT_CONTEXT to WINHTTP_NO_CLIENT_CERT_CONTEXT, but can be implemented

Offline

Board footer

Powered by FluxBB