Re: X509 Certificate not showing in web client



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.
>>
>>
>>


.



Relevant Pages

  • Re: Issues with SSL on Win CE 5.0
    ... the HKCU certificate store. ... and tell the web server to use it. ... The old cert was in. ...
    (microsoft.public.windowsce.embedded)
  • Re: HttpWebRequest failure with TLS
    ... My guess is that you are going to want it in the machine store as the ... account your web service client is running under will eventually change to ... private key associated with it in the cert properties dialog. ... certificate should go in the personal store. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: cannot view indexed property
    ... I'm going to assume that your client is actually a service running under ... have a personal certificate store. ... It is located in the current user personla store ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Need help on x509 certificate installation
    ... And the certificate has been install into LocalComputer\Enterprise ... Trust and LocalComputer\Personal store respectively. ... I configure both my webservice and client application WSE 2.0 policy ... Private Key is not available" ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: WSE 2.0 Policy security settings with multiple X.509 certifica
    ... Certificate Store Location is set to LocalMachine (for the Web Service ... "Trusted Client Certificates" is made from "Local Machine - Other People" ...
    (microsoft.public.dotnet.framework.webservices.enhancements)