Thursday 16 December 2010

How to: Configure a Port with an SSL Certificate

http://msdn.microsoft.com/en-us/library/ms733791.aspx

Prerequisites

  • You must have imported a certificate in your LocalMachine or CurrentUser certificate location and find out its thumbprint identifier
  • You must have an application with an ID as GUID e.g. a Windows Service
  • You must know to which Store your certificate is stored.


Add a certificate binding:
netsh http add sslcert ipport=0.0.0.0:6080 certhash=bcb0d7372d065fdb4047d6fdde64b1c84f6e12c2 appid={00000000-0000-0000-0000-000000000000} clientcertnegotiation=enable certstorename=Personal

Delete a certificate binding:
netsh http delete sslcert ipport=0.0.0.0:6080

Display current port binding
netsh http show sslcert ipport=0.0.0.0:6080

Show all current port configurations:

netsh http show sslcert

No comments: