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 / New Users / April 2007

Tip: Looking for answers? Try searching our database.

X509 certificate with password

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Filippo Bettinaglio - 10 Apr 2007 23:10 GMT
Hi,

I have a certificate X509 with a private key therefore is protected by
password stored in a file.

I need to read the certificate, with NET2 is a peace of cake:

X509Certificate cert = new X509Certificate(@"...path...", "password");

Done  !!!!

Can someone tell me how it is possible reading the certificate with .NET1.1?
There is no possibility to specify a password, The framework is not so
developed like .NET2

Do I need to go back to APIs?  If so any sample?

I am also happy to install the cert in the machine (and therefore get rid of
the password) and read it from the certificate container? If doing so, I can
stay in a pure .NET 1.1 enviroment without using iterop…..

Many thanks,
Filippo
Chris Mullins [MVP] - 11 Apr 2007 01:13 GMT
> Can someone tell me how it is possible reading the certificate with
> .NET1.1?
> There is no possibility to specify a password, The framework is not so
> developed like .NET2

If I remember correctly, you can download the Web Service Extensions (WSE)
1.0 & 2.0 for .Net 1.1.

I'm pretty sure WSE 1.0 & 2.0 are .Net 1.1, but that WSE 3.0 is for .Net
2.0. I could be mistaken though about my versions and how they match up with
.Net 1 & 2. You'll have to check the relevant documentation.

The WSE framework has a signifigant number of classes dedicated to X509
handling and manipulation. One of them should do what you're looking for.
(X509Certificate2, I think. It's been a long time since I did any .Net 1.1
though).

Signature

Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
http://www.coversant.com/blogs/cmullins


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.