Page 1 of 1

TScHttpWebRequest.SSLOptions.OnServerCertificateValidation not fired

Posted: Tue 16 Mar 2021 07:42
by chapa
Hello,

If I set TScHttpWebRequest.SSLOptions.OnServerCertificateValidation it get fired in order to verify server certificate. So far so good. But I want also client to send self-signed certificate to the server, so I set manually Certificate and Key in Memory Storge. I can confirm the server verifies the client, but in client code OnServerCertificateValidation is not fired anymore when I set client cert and key.

Is it intentional or I am doing something wrong?

Thanks.

Re: TScHttpWebRequest.SSLOptions.OnServerCertificateValidation not fired

Posted: Tue 16 Mar 2021 12:53
by ViktorV
TScHttpWebRequest.SSLOptions.OnServerCertificateValidation is invoked only once on connection attempt during server certificate validation. Make sure that the property TScHttpWebRequest.SSLOptions.CACertName is set to an empty string.
If that doesn't help, please create and send us a sample project (including all necessary files) demonstrating the issue, through the contact form: https://www.devart.com/company/contactform.html