Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bnoonan-cloudian
Copy link

@bnoonan-cloudian bnoonan-cloudian commented Sep 17, 2025

Fixing:
/root/cloudianqa_venv/lib/python3.10/site-packages/kmip/services/kmip_client.py:288: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated context = ssl.SSLContext(self.ssl_version)

Fix was actually rather simple as it never seemed to really be used in reality (as the ssl_version field was entirely optional) and it's functionality is entirely deprecated by the use of ssl.PROTOCOL_TLS_CLIENT which now does everything it needs to automatically.
The new context caused problems elsewhere though, but issues were avoided by forcing check_hostname to false, it is not necessary for the way we use certs in our testing.

@bnoonan-cloudian bnoonan-cloudian changed the title Fix more dependency warnings Remove ssl_version field to fix more dependency warnings Sep 18, 2025
@bnoonan-cloudian bnoonan-cloudian changed the title Remove ssl_version field to fix more dependency warnings Remove ssl_version field from client to fix more dependency warnings Sep 18, 2025
Copy link
Collaborator

@jgibbs-cloudian jgibbs-cloudian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bnoonan-cloudian bnoonan-cloudian merged commit cac7bc1 into master Sep 18, 2025
0 of 20 checks passed
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

Successfully merging this pull request may close these issues.

2 participants