MSDeploy with HTTPS

MSDeploy is great… once you have it working. Installing MSDeploy can a horrible, painful process. I’m in the process of compiling a list of the errors I had to hopefully save other people some pain. Right now I want to highly a particularly tricky area – setting up and debugging MSDeploy with SSL. Here are the steps I followed for installing MSDeploy with SSL.

A good reference blog post is here:

1. Install certificate
certutil -p password -importPFX certificate.pfx

2. msiexec /i WebDeploy_1_01_amd64_en-US.msi /passive ADDLOCAL=ALL LISTENURL=https://+:8172/MsDeployAgentService/

3. netsh http add sslcert ipport= certstorename=MY certhash=c1956dc8a7dfb2a5a56934da09778e3a11023358 appid={E4AFD2FC-1A55-4DC8-B2EF-8384EC8BD002}

appid = any guid.
certhash = matches the Certificate Thumbrint

4. net start msdepsvc
5. netsh firewall add portopening TCP 8172 WebDeployAgent

Easy stuff.

This entry was posted in .Net and tagged , , . Bookmark the permalink.

4 Responses to MSDeploy with HTTPS

  1. Hey

    I’m in MsDeploy hell right now… cannot get it configured at all!

    Any further tip?


  2. RKK says:

    netsh http add sslcert ipport= ,why are you using 443 you should be using 8172 ?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s