You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the same code is not working with .NET core 2.0 and .NET standard 2.0.
I have also tried the below code:
var httpClientHandler = new HttpClientHandler(); httpClientHandler.ServiceCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
But this is not working for me.
'An error occurred while sending the request, The certificate authority is invalid or incorrect' exception has been thrown.
Please suggest me any alternative solution for the self-signed certificate in .NET standard 2.0.