Re: X509 Certificate not showing in web client
- From: "Jon" <jon.booth@xxxxxxxxxxxxxxxx>
- Date: Fri, 14 Oct 2005 08:47:53 +1000
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
"eni9ma" <eni9ma.SA@xxxxxxxxx> wrote in message
news:610849DD-B38F-4DC1-825D-CC983CDE6AF4@xxxxxxxxxxxxxxxx
> 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]));
>
> "Jon" wrote:
>
>> 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
>>
>> "eni9ma" <eni9ma@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:CBE735EE-C5AA-400A-A571-65378B4F07A5@xxxxxxxxxxxxxxxx
>> > 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.
>>
>>
>>
.
- References:
- Prev by Date: Exception Details: System.Web.Services.Protocols.SoapHeaderException: Server unavailable, please try later
- Next by Date: Re: Exception Details: System.Web.Services.Protocols.SoapHeaderException: Server unavailable, please try later
- Previous by thread: Re: X509 Certificate not showing in web client
- Next by thread: File Attachment problem
- Index(es):
Relevant Pages
|