Skip to content

deprecate make_self_signed_cert - #10466

Merged
bmw merged 5 commits into
mainfrom
test-deprecate-make-self-signed-cert
Sep 30, 2025
Merged

bmw merged 5 commits into
mainfrom
test-deprecate-make-self-signed-cert

Conversation

@bmw

@bmw bmw commented Sep 25, 2025 •

Copy link
Copy Markdown
Member

with #10465, make_self_signed_cert is no longer used outside of our tests so let's move it there and remove it from our public API

it might be easiest to look at the first two commits here individually. the first one copies make_self_signed_cert to the compatibility tests with no changes. the second commit cleans it up and removes a lot of the additional functionality we no longer need

@bmw
bmw marked this pull request as ready for review September 25, 2025 22:24
@bmw
bmw requested a review from ohemorange September 25, 2025 22:24
ohemorange
ohemorange previously approved these changes Sep 29, 2025

@ohemorange ohemorange left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm!

Comment thread pytest.ini Outdated
# 1) Our own warning about the deprecated acme.crypto_util.make_self_signed_cert function.
filterwarnings =
error
ignore:make_self_signed_cert is deprecated:DeprecationWarning

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

a little tempted to suggest just removing GenMakeSelfSignedCertTest now and not needing this warning since we're not using it anymore, but I'm fine with leaving it now and removing it along with the code later, as well.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

how about my most recent commit?

it fixes up tests to actually test for the warning and allows us to not ignore the warning globally so if we ever try to write a new call to make_self_signed_cert, we'll see the warning. it also lets us keep tests around until we actually remove the function. i personally think an approach like this is ideal whenever we deprecate functionality

if you don't like this for some reason tho, just lmk whatever approach you prefer and i'll implement that

@ohemorange ohemorange left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like that even better, thanks!

@bmw
bmw merged commit 33890ab into main Sep 30, 2025
@bmw
bmw deleted the test-deprecate-make-self-signed-cert branch September 30, 2025 14:16
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