« Previous Next »

Thread: MSDeploy using https instead of http

Last post 06-22-2009 1:58 PM by western592. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 06-19-2009, 1:32 PM

    MSDeploy using https instead of http

    I have been able to get MSDeploy working using a custom http url and port. When I reinstall and change it to use https along with the same custom port, I get the following error: C:\Program Files\IIS\Microsoft Web Deploy>msdeploy.exe -verb:sync -source:contentPath=D:\inetpub\website.com -dest:contentPath=c:\inetpub\website.com,computername=https://1.2.3.4:8001/MSDEPLOYSYNC/,userName=administrator,password=***** Error: Request to remote agent URL 'https://1.2.3.4:8001/MSDEPLOYSYNC/' fa iled. Error: The underlying connection was closed: An unexpected error occurred on a send. Error: Unable to read data from the transport connection: An existing connectio n was forcibly closed by the remote host. Error: An existing connection was forcibly closed by the remote host Error count: 1 Any special that needs to be setup in order to use https?
  • 06-19-2009, 4:30 PM In reply to

    • richma
    • Top 25 Contributor
    • Joined on 04-06-2009, 12:10 PM
    • Posts 308

    Re: MSDeploy using https instead of http

    This should give you what you need.  

    Customizing and Securing the Remote Service

    http://technet.microsoft.com/en-us/library/dd569093(WS.10).aspx

  • 06-22-2009, 1:02 PM In reply to

    Re: MSDeploy using https instead of http

    Looks like I am on the right track thanks to the technet article, but I can't set the ssl binding. When I run this command: netsh.exe http add sslcert ipport=0.0.0.0:8001 certhash=55F3E60622CE26F28C2AFE4C39F09F38F1204323 appid={00000000-0000-0000-0000-000000000000} I get this error message: SSL Certificate add failed, Error: 1312 A specified logon session does not exist. It may already have been terminated. I am running the command using a administrator cmd window. I assume I am correct that this command is supposed to generate a self signed certificate and I don't need to complete any steps before it?
  • 06-22-2009, 1:47 PM In reply to

    Re: MSDeploy using https instead of http

    I used the certhash of the local self signed certificate for the command. This gives me a "SSL Certificate successfully added" message. When I try to rerun the msdeploy command from the remote server to copy the files, I still get this error message now: Error: Request to remote agent URL 'https://1.2.3.4:8001/MSDEPLOYSYNC/' failed. Error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. Error: The remote certificate is invalid according to the validation procedure. Error count: 1 Is there another step to make the remote certificate valid? Or do I need to create a new self signed certificate with different attributes?
  • 06-22-2009, 1:58 PM In reply to

    Re: MSDeploy using https instead of http

    Added the -allowUntrusted to the command and everything works now.
Page 1 of 1 (5 items)