Wednesday, August 25, 2010

Self-hosted WCF service with SSL certificate security

Spent the whole day trying to force my self-hosted service to respond.

Finally what has helped is two lines below to execute (port, certhash, path and user name are up to you. Not sure about appid yet :-) ):

netsh http add urlacl url=httpS://+:2202/PatientService user=DOMAIN\user

netsh http add sslcert ipport=0.0.0.0:2202 certhash=ea81a9b4c330247f966d23d7e21266171f92cd47 appid={4EF5AB95-0A11-43b1-842C-51D56687CC7A}

Now need to understand - WHY??