We have a function to send files to a public server usin X509 cert in C#, but the issue is on the receiving end the cert is not being picked up. we get a 403.7 message saying cert not supplied. the code to add the cert is as followed:
try
{
X509Certificate certificate = X509Certificate.CreateFromCertFile(certificatePath);
httpWebRequest.ClientCertificates.Add(certificate);
}
catch (Exception CertificateException)
{
return "Failed to add certificate to post:" + certificatePath + " " + CertificateException.Message;
}
any thoughts