|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
problems by consuming a web service via httpsWithin my web service proxy programmed in .Net 2003/C++, I want to consume a service via https. The server certificate is a self built one. I thought it’s enough to install the certificate on my client computer, so that the certificate is available in the common key store. The access fails with an exception telling me, that the server can’t be trusted. The stack: at System.Net.HttpWebRequest.CheckFinalStatus() at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult) at System.Net.HttpWebRequest.GetRequestStream() at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at cg021179.ReiKoUploadWSService.isAlive() in c:\vc-projekte\testappupload\testreiko\cg021179.h:line 63 at main() in c:\vc-projekte\testappupload\testreiko\testreiko.cpp:line 25 Press any key to continue OK, then I must inform the SSL connection explicitly about the certificate by storing there an own built keystore, which contains the server certificate. So far so good. In java you have a tool building a keystore and you have the javax.net.ssl package for storing the keystore. That works! But what is the equivalent in .Net and C++? Or must be the solution in C++/.Net a quite different one? Thanks in advance for help. With regards, Manfred Manfred, Munich |
|||||||||||||||||||||||