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

test: mock-insights: switch away from ssl.wrap_socket() #75

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

ptoscano
Copy link
Collaborator

@ptoscano ptoscano commented Aug 6, 2024

ssl.wrap_socket() is long deprecated, and dropped in Python 3.12. Switch to use an SSLContext for client authentication. Load also the system CA store, as it contains the Candlepin CA: this way, the CERT-based authentication (using the consumer certificate generated by Candlepin) can be validated.

ssl.wrap_socket() is long deprecated, and dropped in Python 3.12.
Switch to use an SSLContext for client authentication. Load also the
system CA store, as it contains the Candlepin CA: this way, the
CERT-based authentication (using the consumer certificate generated
by Candlepin) can be validated.
@ptoscano ptoscano force-pushed the ptoscano/tests-sslserver-fix branch from 9db9942 to 83c1616 Compare August 6, 2024 09:17
@ptoscano ptoscano changed the title test: mock-insights: switch away fromm ssl.wrap_socket() test: mock-insights: switch away from ssl.wrap_socket() Aug 6, 2024
@martinpitt
Copy link
Contributor

This LGTM, and should land either way. I triggered a rhel-10-0 run to validate this for cockpit-project/bots#6703

@martinpitt
Copy link
Contributor

Green! 💚

Copy link
Contributor

@m-horky m-horky left a comment

Choose a reason for hiding this comment

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

LGTM

@m-horky m-horky merged commit 7c49fe2 into main Aug 7, 2024
6 checks passed
@m-horky m-horky deleted the ptoscano/tests-sslserver-fix branch August 7, 2024 11:42
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.

3 participants