Comments (4)
Ok, here's some more information. I get this when an error occurs during login. In this case a "certificate verify failed" error:
connect: ftp.secureftp-test.com, 21
get: 220 Microsoft FTP Service
put: AUTH TLS
get: 234 AUTH command ok. Expecting TLS Negotiation.
OpenSSL::SSL::SSLError
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
If I add the following before the call to close
then it works.
ftps.send :decorate_socket, ftps.instance_variable_get(:@sock)
The issue is that the failure happens when the socket attempts to connect. But decorate
isn't called until after the socket is connected.
For some reason, #closed?
returns false for a connection that has never opened.
from double-bag-ftps.
I'm getting the same thing.
from double-bag-ftps.
I started to look at this a few months ago. Unfortunately, the public ftp
site upon which this gem depends for it's tests is no more. If I get a
chance I'll see if my ftpd or some other ruby ftp lib. can be used to
create a new test suite. Ftpd uses this gem in its own tests, but not at
runtime, so it ought to be ok, mostly, even if it is a little bit "close"
of a relationship between the two. Either that, or we get lucky and find
another public ftp server that has ssl support.
On Sep 26, 2015 18:05, "Jamon Holmgren" [email protected] wrote:
I'm getting the same thing.
—
Reply to this email directly or view it on GitHub
#9 (comment).
from double-bag-ftps.
Thanks @wconrad! No rush.
from double-bag-ftps.
Related Issues (9)
- DoubleBagFTPS timeout in ruby HOT 7
- RubyGem release 0.1.3 HOT 2
- RubyGem release 0.1.4 HOT 3
- Incompatibility with Ruby 2.4.x HOT 16
- Handle private address being returned by a server HOT 1
- active mode data transfers hang HOT 9
- Possible incompatibility with ruby 2.1.1 HOT 2
- 0.1.2 socket re-use causes JRuby to fail when attempting to log in HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from double-bag-ftps.