Environment - Web Deploy to untrusted server

james's Avatar

james

06 Apr, 2014 03:09 PM

I have a shared hosting provider that allows deployment of websites via web deploy, but the certificate on the server is untrusted. When deploying with Visual Studio, the publish wizard will ask to verify the certificates authenticity, but when deploying with AppVeyor using an environment I set up I see:

Connected to the remote computer ("xxxx") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.

I'm 100% certain the credentials are correct so I'm assuming the deployment is failing due to certificate error. Is there a way to get around this? Am I going to have to create a script?

  1. Support Staff 1 Posted by Feodor Fitsner on 06 Apr, 2014 03:33 PM

    Feodor Fitsner's Avatar

    Hi James,

    Does deployment URL contain https?

  2. 2 Posted by james on 06 Apr, 2014 03:35 PM

    james's Avatar

    Yes it does.

  3. Support Staff 3 Posted by Feodor Fitsner on 06 Apr, 2014 03:37 PM

    Feodor Fitsner's Avatar

    OK, we'll add certificate validation callback for SSL certificates and deploy an update later today.

  4. Support Staff 4 Posted by Feodor Fitsner on 06 Apr, 2014 03:48 PM

    Feodor Fitsner's Avatar

    Well, apparently SSL validation callback is already set for Web Deploy - this might be not a problem.

    What connection details do you set in VS and AppVeyor (hide sensitive data)? Make sure you specify correct server URL ("Specifying correct connection details" section in http://www.appveyor.com/docs/deployment/web-deploy).

  5. 5 Posted by james on 06 Apr, 2014 03:57 PM

    james's Avatar

    You're absolutely correct.

    I hadn't added the site query parameter in the Server url setting as I was using the web deploy handler (msdeploy.asd). Doh! Works perfectly now. Can't read documentation enough can you...?

    Thanks for the assist.

  6. Support Staff 6 Posted by Feodor Fitsner on 06 Apr, 2014 04:05 PM

    Feodor Fitsner's Avatar

    Cool, glad it helps! :)

  7. james closed this discussion on 10 May, 2014 01:37 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM
20 Sep, 2024 05:50 PM