It is not uncommon for SSL servers to require, for security reasons, some sort of authorization of its clients to permit requests.
If SSL server is configured to use SSL client authentication, this means, during SSL negotiation, client must provide server with some X509
certificate in order to prove its own identity. Without such a certificate the following exception is thrown "Could not create SSL/TLS secure channel".
Technically, the following code snippet can illustrate how this may be achieved in client code, I found this on some site, so this is not my code,
and it can contain errors, just in case.
HttpWebRequest httprq = (HttpWebRequest)HttpWebRequest.Create(uri);
string certificateName = "SoapProxy2";
X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
X509Certificate2Collection certificates = store.Certificates.Find(X509FindType.FindBySubjectName, certificateName, true);
X509Certificate certificate = certificates;
httprq.Method = "POST";
httprq.ContentType = "text/xml; charset=utf-8";
httprq.ContentLength = 0;
HttpWebResponse httprp = (HttpWebResponse)httprq.GetResponse();
It would be great to expose some properties for HttpUpload component so that one can set store name, certificate name etc
for uploading images.
We would like to see the support for SSL client authentication while uploading images via HTTPS.
SDK allows to upload acquired images to HTTP/HTTPS servers. What do you mean? Please explain.
Best regards, Alexander