none
WCF security with certificates RRS feed

  • Question

  • Hi,

    I started working with wcf security with certificates, I have seen code like providing storelocation and storename in SetCertificate or passing certificate if we want to provide peertrust/ chain trust.

    But that will be hardcoded to single certificate with 1 service.

    How can I write a client to connect to any sercvice without providing certificate in client code about server server certificate

    or in configuratin file i have to pass dns names as certificate name ( this is also hardcodes to single service)

    Can anybody help on how to make client code is generic to connect any service.

    publicvoid SetCertificate(
    string subjectName,
    StoreLocation storeLocation,
    StoreName storeName

     Thanks

    Thursday, January 17, 2013 12:30 PM

Answers

  • Hi,If the service is SSL based, you can access the service anonymous, client is not need any verification from service.
    Friday, January 18, 2013 8:05 AM