Using an X.509 Certificate in WSE 2.0
The following code shows how to wrap an X.509 certificate in WSE 2.0.
using Microsoft.Web.Services2.Security.X509;
public static X509Certificate GetCertificate(string subjectString)
{
// create an X509 certificate store and open it for read.
X509CertificateStore store = X509CertificateStore.CurrentUserStore(X509CertificateStore.MyStore);
bool open = store.OpenRead();
if (open == false)
return null;
// Finds a X509Certificate object in the store using the certificate's name value.
X509CertificateCollection certs = store.FindCertificateBySubjectString(subjectString);
store.Close();
X509Certificate cert = (X509Certificate)certs[0];
return cert;
}
X509CertificateStore.MyStore represents the predefined system certificate store "My". This field is constant. The subjectString is the certificate's name value.
References:
Michael Stiefel, Securing Service Oriented Architecture with WSE 2.0
3 Comments:
louis vuitton outlet, ugg boots, ray ban sunglasses, oakley sunglasses, louis vuitton outlet, longchamp pas cher, prada outlet, polo ralph lauren outlet, nike outlet, chanel handbags, louboutin outlet, longchamp outlet, louis vuitton, nike air max, cheap oakley sunglasses, longchamp outlet, jordan shoes, louis vuitton, nike free, tiffany and co, tory burch outlet, prada handbags, replica watches, nike roshe run, longchamp, louboutin, air max, ralph lauren pas cher, christian louboutin outlet, replica watches, louis vuitton, nike air max, kate spade outlet, louboutin pas cher, nike free, oakley sunglasses, sac longchamp, oakley sunglasses, polo ralph lauren outlet, louboutin shoes, uggs on sale, ray ban sunglasses, ray ban sunglasses, burberry, gucci outlet, oakley sunglasses, tiffany jewelry, ugg boots, air jordan pas cher, michael kors
nike air max
air jordan
nike air force 1
cheap uggs
ugg outlet
michael kors handbags
nike air max
calvin klein outlet
ray ban sunglasses
ugg outlet
201711.27wengdongdong
hollister uk
softball bats
cheap basketball shoes
adidas superstar
pandora bijoux
marc by marc jacobs
salvatore ferragamo
ralph lauren
oakley vault
montre homme
2017.12.12chenlixiang
Post a Comment
<< Home