Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Accessing webservice that requires client certificateAccessing webservice that requires client certificate
Previous
 
Next
New Post
12/4/2008 8:32 AM
 

Hi Guys,

I am trying to access a webservice that requires client certificate for authentication. The client has sent us the certificate(.p12) along with the password, and I have installed the certificate under my local machine store as explained in the following article.

http://support.microsoft.com/kb/901183.

 

Using WSE2.0 I am also able to pull the certificate using the following code:

// WSE 2.0 method
  X509CertificateStore store =
    X509CertificateStore.LocalMachineStore(X509CertificateStore.MyStore);
  store.OpenRead();
  // Look for the first certificate that is named SecureMathClient.
  // Look in the local machine store.
  X509CertificateCollection col=
    (X509CertificateCollection)store.FindCertificateBySubjectString(certName);
  X509Certificate cert =null;
  try
  {

// This sample obtains the first matching certificate from the collection.
    cert = col[0];
  }
  catch(Exception ex)
  {
    throw new Exception("Certificate not Found!");
  }
 

What I want now is how to access the webservice by passing the client certificate through my .net web application. I cannot add reference to the webservice by using Add Webreference because I get an error saying that particular webservice requires a certificate.

Some of the code samples I am refering to keeps talking about creating a webservice proxy. How do i create the proxy when  i cannont add the reference to the webservice?

 Thank you all in advance for your help

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Accessing webservice that requires client certificateAccessing webservice that requires client certificate


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out