Re: Web Services: Axis - C# :: AuthenticationException

2007-07-24 Thread José Ferreiro

Hello,

Try to use this tool because I think you are having problem with the
accepted format in .net.

http://www.alphaworks.ibm.com/tech/keyman

KeyMan is a tool for managing keys, certificates, certificate revocation
lists (CRLs), and the respective repositories for storing and retrieving
these items. The full life cycle of certificates is supported, as are
processes involved in handling user and server certificates.

Are you using your own generated cer? Do you use WSE 2.0 or WSE 3.0? Which
.net framework do you user .net 1.1 or .net 2.0



Jose Ferreiro


On 7/23/07, Srinivasa Rao K [EMAIL PROTECTED] wrote:


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.http://us.rd.yahoo.com/evt=48246/*http://autos.yahoo.com/green_center/;_ylc=X3oDMTE5cDF2bXZzBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDZ3JlZW4tY2VudGVy





--
José Ferreiro Jose Ferreiro


Re: Web Services: Axis - C# :: AuthenticationException

2007-07-24 Thread Srinivasa Rao K
Thanks Jose,
   
  I programatically by-passed the by including the below code. But response on 
the 
  client side it NULL, able to see SOAP request and response on the server side.
   
  Any idea on this Null value at client side?
   
  System.Net.ServicePointManager.ServerCertificateValidationCallback = 
delegate(object sender, 
System.Security.Cryptography.X509Certificates.X509Certificate certificate, 
System.Security.Cryptography.X509Certificates.X509Chain chain, 
System.Net.Security.SslPolicyErrors sslPolicyErrors)
  {
  return true;
  };
   
  Thanks,
  Srinivas

José Ferreiro [EMAIL PROTECTED] wrote:
  Hello,

Try to use this tool because I think you are having problem with the accepted 
format in .net.

http://www.alphaworks.ibm.com/tech/keyman

KeyMan is a tool for managing keys, certificates, certificate revocation lists 
(CRLs), and the respective repositories for storing and retrieving these items. 
The full life cycle of certificates is supported, as are processes involved in 
handling user and server certificates.

Are you using your own generated cer? Do you use WSE 2.0 or WSE 3.0? Which .net 
framework do you user .net 1.1 or .net 2.0



Jose Ferreiro


  On 7/23/07, Srinivasa Rao K [EMAIL PROTECTED] wrote: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.  




-- 
José Ferreiro Jose Ferreiro



   
-
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 

Web Services: Axis - C# :: AuthenticationException

2007-07-23 Thread Srinivasa Rao K
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.