Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

Programmatically add certificate to store

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Diego Barros - 29 Nov 2004 02:42 GMT
Hi all,

I have create a self-signed x.509 certificate using the makecert.exe
and pvkimprt.exe tools. Manually I was able to add the resulting
cert.pfx file using the MMC Certificate admin tools.

How can I programmatically add a self-signed x.509 certificate
(including a private key) to the certificate store?

Any help would be greatly appreciated.

Regards,
Diego
Rob Vretenar - 30 Nov 2004 20:20 GMT
The easiest way to do this programmatically is to use Microsoft's Web
Service Enhancements (WSE 2.0).  The WSE contains several classes in
the Microsoft.Web.Services2.X509 namespace that can help you.
X509CertificateStore will allow you to open a cert store for writing.
X509CertificateCollection can represent all of the certs in that store.
X509Certificate is your certificate that you can load from file.
Once you have your cert, you can add it to the cert collection for the
given store.

You can download WSE2 from Microsoft's web site.
Hope that helps

Rob Vretenar [imason inc.]

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.