Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot set verify_mode to CERT_NONE when check_hostname is enabled. #81

Closed
ccztux opened this issue Aug 17, 2023 · 2 comments
Closed

Cannot set verify_mode to CERT_NONE when check_hostname is enabled. #81

ccztux opened this issue Aug 17, 2023 · 2 comments

Comments

@ccztux
Copy link

ccztux commented Aug 17, 2023

I get the following error:

[root@myhost ~]# ./check_http_json.py -H myhost -P 8443 -p rest/api/count?Type=failedTask -s -w count,@10: -c count,@10: -e count -k
Traceback (most recent call last):
  File "./check_http_json.py", line 651, in <module>
    main(sys.argv[1:])
  File "./check_http_json.py", line 553, in main
    context.verify_mode = ssl.CERT_NONE
  File "/usr/lib64/python3.6/ssl.py", line 443, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
ValueError: Cannot set verify_mode to CERT_NONE when check_hostname is enabled.

And will provide a fix via a pull request.

@ccztux
Copy link
Author

ccztux commented Aug 17, 2023

I just realized that this is already fixed in the master branch. I used the latest release 2.1.2

@ccztux ccztux closed this as completed Aug 17, 2023
@martialblog
Copy link
Collaborator

Hey, I'll update the Releases. Sorry about that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants