Re: Storage of Client Certificates
- From: <jason.chen@xxxxxxxxxxxxxxxxx>
- Date: Wed, 14 Sep 2005 16:41:17 -0400
I think so, I've tried that also, successfully. basically client will send
their public key alone with the request, so you read it out from
SoapContext, and use it to encrypt the response. the downside of this is,
any user that has your public key will be able to consume your webservice.
if you think about it, your webservice is no longer 'secure', it's like
opening to public now. if you do not restrict what users can access your
webservice, then why go through the hassels protecting a public webservice
at the first place?
I think this brings up another question I have, what is the best practice in
order to restricted your webservice accessible to a set of known users? if
you have a list of public keys from your clients, how do you figure out
which public key to use when your webservice received a request? best
approach I can think of is maintaining a list of trusted public key
identifiers in your config file, and make sure the public key in the request
is among one of them. how do you guys think?
-jason
"RobertP" <RobertP@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:60B28679-3E0C-44B5-9260-2B7EA919F697@xxxxxxxxxxxxxxxx
> To send an encrypted response back to the client, I would need their
public
> key.
>
> I guess I would not have to store their public key if they send the public
> key to me with their request?
>
> Thank You,
>
> Robert
>
> "Pablo Cibraro" wrote:
>
> > No, only if you identitfy your clients through public keys.
> > In this case, maybe, using a UsernameToken is a better idea. You can use
a
> > UsernameToken to identify clients and a X509 certificate to protect the
> > messages.
> > With this solution, your clients must have a public key and you only
need a
> > private key in the server's certificate store.
> >
> > Regards,
> > Pablo Cibraro
> > www.lagash.com
> >
> > "RobertP" <RobertP@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:1A8ABB9F-00A4-453A-A156-7D2AFAED2E6E@xxxxxxxxxxxxxxxx
> > > If I have 5,000 users of my web service, I need to have 5,000 public
keys
> > > in
> > > my server's Certificate Store?
> >
> >
> >
.
- Follow-Ups:
- Re: Storage of Client Certificates
- From: William Stacey [MVP]
- Re: Storage of Client Certificates
- References:
- Storage of Client Certificates
- From: RobertP
- Re: Storage of Client Certificates
- From: Pablo Cibraro
- Storage of Client Certificates
- Prev by Date: VS2005 RC
- Next by Date: The MessageSignature was invalid (Kerberos)
- Previous by thread: Re: Storage of Client Certificates
- Next by thread: Re: Storage of Client Certificates
- Index(es):
Relevant Pages
|