Environment - Web Deploy to untrusted server
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?
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
Support Staff 1 Posted by Feodor Fitsner on 06 Apr, 2014 03:33 PM
Hi James,
Does deployment URL contain
https
?2 Posted by james on 06 Apr, 2014 03:35 PM
Yes it does.
Support Staff 3 Posted by Feodor Fitsner on 06 Apr, 2014 03:37 PM
OK, we'll add certificate validation callback for SSL certificates and deploy an update later today.
Support Staff 4 Posted by Feodor Fitsner on 06 Apr, 2014 03:48 PM
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 Posted by james on 06 Apr, 2014 03:57 PM
You're absolutely correct.
I hadn't added the
site
query parameter in theServer
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.
Support Staff 6 Posted by Feodor Fitsner on 06 Apr, 2014 04:05 PM
Cool, glad it helps! :)
james closed this discussion on 10 May, 2014 01:37 PM.