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 / .NET Framework / Security / March 2008

Tip: Looking for answers? Try searching our database.

Adding Certificate Authority Trust through Code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jediah L - 24 Mar 2008 15:53 GMT
I have the following code snippet where I am trying to install a Certificate
Authority Trust through code.  Most of our trusts are installed through
GPO's but this is a special circumstance for a Development CA and an SDK
install.

Like many other interfaces with the .Net API wrappers for the CAPI - I
receive no errors, but the certificate that I'm trying to install does not
persist.  Does anyone have any thoughts?  I'm going to hit google as well,
but because I couldn't find a similiar question in the newsgroup - I figured
I'd double dip.

Thanks!

xCertificate = new X509Certificate2(certPath);

store = new X509Store(StoreName.CertificateAuthority,
StoreLocation.LocalMachine);

store.Open(OpenFlags.ReadWrite);

store.Add(xCertificate);

store.Close();

Jediah L.
Jediah L - 24 Mar 2008 16:27 GMT
sorry - wrong newsgroup....

>I have the following code snippet where I am trying to install a
>Certificate Authority Trust through code.  Most of our trusts are installed
[quoted text clipped - 21 lines]
>
> Jediah L.

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.