Re: Using digital certificates when calling web services
From: Rob Vretenar (rob.vretenar_at_imason.com)
Date: 11/22/04
- Next message: Ed Glunz: "Re: Using digital certificates when calling web services"
- Previous message: Dino Chiesa [Microsoft]: "Re: What caused return from XML Web Service to change output format?"
- In reply to: Ed Glunz: "Using digital certificates when calling web services"
- Next in thread: Ed Glunz: "Re: Using digital certificates when calling web services"
- Reply: Ed Glunz: "Re: Using digital certificates when calling web services"
- Messages sorted by: [ date ] [ thread ]
Date: 22 Nov 2004 08:45:28 -0800
If you want to load the certificate from the file, look at the
X509Certificate class in .Net:
System.Securtiy.Cryptograpy.X509Certificates.X509Certificate
You can load the cert from the file provided:
// The path to the certificate.
string Certificate = "filepath\VgeDev.p7b";
// Load the certificate into an X509Certificate object.
X509Certificate cert =
X509Certificate.CreateFromCertFile(Certificate);
once you have the cert, you can add it to the web service
if (cert != null)
{
webService.ClientCertificates.Add(cert);
}
You can also look at Microsoft's Web Service Enhancements (WSE) 2.0 for
additional information about security.
Rob Vretenar [imason inc.]
- Next message: Ed Glunz: "Re: Using digital certificates when calling web services"
- Previous message: Dino Chiesa [Microsoft]: "Re: What caused return from XML Web Service to change output format?"
- In reply to: Ed Glunz: "Using digital certificates when calling web services"
- Next in thread: Ed Glunz: "Re: Using digital certificates when calling web services"
- Reply: Ed Glunz: "Re: Using digital certificates when calling web services"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|