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 / October 2005

Tip: Looking for answers? Try searching our database.

X509 Certificate not showing in web client

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eni9ma - 13 Oct 2005 00:45 GMT
Hi,im a IT student who spent some time working through a Security Hands-on
Lab of wse 2.0.Im having trouble accessing a certificate from a web-base
client (asp.net Webpage),the exact same runs only from a windows form but
when run from a web page,the cert store has 0 certificates.I gave aspnet acc
full control permission to the certificate. Please help me. Any help will be
appreciated. Need this for a project.
Jon - 13 Oct 2005 02:00 GMT
What is the store location? Is it Current User? Try putting the client
certificate in either the ASP.NET users store or put it in the Machine store
and reference the LocalMachine store in your code/policy.

Jon

> Hi,im a IT student who spent some time working through a Security Hands-on
> Lab of wse 2.0.Im having trouble accessing a certificate from a web-base
[quoted text clipped - 4 lines]
> be
> appreciated. Need this for a project.
eni9ma - 13 Oct 2005 02:14 GMT
The store is current store. The thing is its run perfectly from a windows
form but not from a web page?
The code look like.

X509CertificateStore store =
X509CertificateStore.CurrentUserStore(X509CertificateStore.MyStore);
            store.OpenRead();
            X509CertificateCollection certs =
store.FindCertificateByKeyIdentifier(Convert.FromBase64String(keyId));
            store.Close();
            return new X509SecurityToken(((X509Certificate)certs[0]));

> What is the store location? Is it Current User? Try putting the client
> certificate in either the ASP.NET users store or put it in the Machine store
[quoted text clipped - 10 lines]
> > be
> > appreciated. Need this for a project.
Jon - 13 Oct 2005 23:47 GMT
Thats because when its an App it runs from the logged in users Certificate
store, but when its a web page/service it uses the ASP.NET users web store
which is probably empty.

If you use the localmachine store then that is common between the two users
and just make sure they both have permissions to access the cert.

Jon

> The store is current store. The thing is its run perfectly from a windows
> form but not from a web page?
[quoted text clipped - 28 lines]
>> > be
>> > appreciated. Need this for a project.

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.