Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

m1h1r0

Posts

2

Joined

Tue Sep 10, 2013 4:02 am

Not able to use HTTPS to connect to server

by m1h1r0 » Tue Sep 10, 2013 4:15 am

I am using edtPro version to connect to an ftp server that provides an connection method using Https protocol. It also requires an SSL Client certificate

The one example I found on the website:
http://www.enterprisedt.com/products/ed ... ghttp.html

My code (in Python):

ftpConnection = SecureFTPConnection()

ftpConnection.ServerAddress = "https://****"
ftpConnection.ServerPort = 443
ftpConnection.Protocol = FileTransferProtocol.HTTP
ftpConnection.UserName=self._username
ftpConnection.Password=self._password
ftpConnection.ServerValidation = 0
ftpConnection.ClientCertificate = SSLFTPCertificate.CreateFromPFX("****","****")

ftpConnection.Connect()
ftpConnection.ChangeworkingDirectory("****");
ftpConnection.DownloadFile("****","****")

But I get a "Bad request (400)". If I remove the "https://" from the serverAddress, I get a "underlying connection closed unexpectedly". Any idea why? Thanks.
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Not able to use HTTPS to connect to server

by support2 » Tue Sep 10, 2013 8:42 am

The ClientCertificate property isn't used for HTTPS, so that might be the problem.

Please email us the Debug log file (support at enterprisedt dot com) and your purchase reference in any case. I don't think anyone has ever asked to use client certificates with HTTPS - it might be quite easy to add it.
no avatar
User

m1h1r0

Posts

2

Joined

Tue Sep 10, 2013 4:02 am

by m1h1r0 » Thu Sep 12, 2013 1:02 am

Thanks for your reply, I have sent a detailed email to support@enterprisedt.com with purchase reference.

Who is online

Users browsing this forum: No registered users and 33 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron