TScHttpWebRequest.SSLOptions.OnServerCertificateValidation not fired

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
chapa
Posts: 3
Joined: Fri 09 Sep 2011 16:06

TScHttpWebRequest.SSLOptions.OnServerCertificateValidation not fired

Post by chapa » Tue 16 Mar 2021 07:42

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.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: TScHttpWebRequest.SSLOptions.OnServerCertificateValidation not fired

Post by ViktorV » Tue 16 Mar 2021 12:53

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

Post Reply