Giter Club home page Giter Club logo

Comments (3)

yoshinari-nomura avatar yoshinari-nomura commented on August 19, 2024

Thanks.
I've changed verify_mode from VERIFY_NONE to VERIFY_PEER by 9e3c47e.

from mhc.

tats avatar tats commented on August 19, 2024

I've changed verify_mode from VERIFY_NONE to VERIFY_PEER by 9e3c47e.

Thank you. The change is enough for me. Closing.

FYI, in Debian's mhc 1.0.2-2, the following patch is used (and the
CA configuration is already set in the Ruby side). I'll drop this
patch in the next release.

  • http://anonscm.debian.org/cgit/collab-maint/mhc.git/tree/debian/patches/030_https.patch?h=experimental&id=debian/1.0.2-2

    Subject: Verify certificates for mhc sync
    Author: Tatsuya Kinoshita <[email protected]>
    
    diff --git a/lib/mhc/webdav.rb b/lib/mhc/webdav.rb
    index d2b369b..d548619 100644
    --- a/lib/mhc/webdav.rb
    +++ b/lib/mhc/webdav.rb
    @@ -18,8 +18,10 @@ module Mhc
             uri = URI.parse(base_url)
             @top_directory = uri.path
             @http = Net::HTTP.new(uri.host, uri.port, proxy_host, proxy_port)
    -        @http.use_ssl = true if uri.scheme == "https"
    -        @http.verify_mode = OpenSSL::SSL::VERIFY_NONE
    +        if uri.scheme == "https"
    +          @http.use_ssl = true
    +          @http.verify_mode = OpenSSL::SSL::VERIFY_PEER
    +        end
           end
    
           def set_basic_auth(user, password)
    

from mhc.

yoshinari-nomura avatar yoshinari-nomura commented on August 19, 2024

Thanks for your support.
I'm very happy to know the Debian package is very up-to-date.

from mhc.

Related Issues (20)

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.