Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
cado-nfs
cado-nfs
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Information : Suite au changement de serveur et d'adresse IP vos commandes git ssh vous retournerons probablement un message d'alerte. Il faut supprimer l'entrée Gitlbab dans le fichier .ssh/known_hosts

  • cado-nfs
  • cado-nfscado-nfs
  • Issues
  • #30011

Closed
Open
Created Jan 31, 2021 by Alexander Kruppa@akruppa☕Developer

cado-nfs-client.py dies with "ValueError: check_hostname needs a SSL context with either CERT_OPTIONAL or CERT_REQUIRED" with Python 3.6

In cado-nfs-client.py, line 740ff, we have

                context.check_hostname = bool(check_hostname)
                if check_hostname:
                    context.verify_mode = ssl.CERT_REQUIRED
                else:
                    context.verify_mode = ssl.CERT_NONE

I.e., the check_hostname attribute gets set before the verify_mode attribute. With Python 3.6, this produces a value error:

ValueError: check_hostname needs a SSL context with either CERT_OPTIONAL or CERT_REQUIRED

According to the SSL module documentation, Python versions prior to 3.7 expect verify_mode to be set before check_hostname, otherwise the above ValueError is thrown. In Python 3.7 and later, check_hostname is set automatically if necessary.

I propose moving the context.check_hostname = bool(check_hostname) down 4 lines, after the block that sets verify_mode. I'm submitting a patch.

Alex

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking