Coder Social home page Coder Social logo

Comments (4)

jeremywadsack avatar jeremywadsack commented on September 28, 2024

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.

jamonholmgren avatar jamonholmgren commented on September 28, 2024

I'm getting the same thing.

from double-bag-ftps.

wconrad avatar wconrad commented on September 28, 2024

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.

jamonholmgren avatar jamonholmgren commented on September 28, 2024

Thanks @wconrad! No rush.

from double-bag-ftps.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.