Hi,
   
  I have extracted certificate ".der" (its not allowing ".cer") file by using 
IBM ikeyman tool.
C:\Program 
Files\IBM\irRational\SDP\6.0\runtimes\base_v51\etc\DummyServerTrustFile.JKS 
file is used as input file for the too. ( RAD6 ) 
   
   C# client for Version Service which is on WebSphere.
   
   X509Certificate x509 = X509Certificate.CreateFromCertFile
                  (@"C:\downloads\CSharpTest\certificates\cert.der");
 Project2.version.VersionService Ver = new Project2.Version.VersionService();
   Ver.ClientCertificates.Add(x509);  
 Ver.Credentials = new System.Net.NetworkCredential("****", "*****"); 
 string version = Ver.getVersion(); 
 
I am getting the below error. 
 
Unhandled Exception: System.Net.WebException: The underlying connection was clos
ed: Could not establish trust relationship for the SSL/TLS secure channel. --->
System.Security.Authentication.AuthenticationException: The remote certificate i
s invalid according to the validation procedure. 
    
Thanks,
Srini

       
---------------------------------
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.

Reply via email to