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

gh-108303: Move all certificates to Lib/test/certdata/ #109489

Merged
merged 2 commits into from
Sep 16, 2023

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Sep 16, 2023

This is a big one: I moved all .pem and ssl related files to a single test helper diractory:

» tree Lib/test/certdata 
Lib/test/certdata
├── allsans.pem
├── badcert.pem
├── badkey.pem
├── capath
│   ├── 4e1295a3.0
│   ├── 5ed36f99.0
│   ├── 6e88d7b8.0
│   ├── 99d0fa06.0
│   ├── b1930218.0
│   └── ceff1710.0
├── ffdh3072.pem
├── idnsans.pem
├── keycert.passwd.pem
├── keycert.pem
├── keycert2.pem
├── keycert3.pem
├── keycert4.pem
├── keycertecc.pem
├── make_ssl_certs.py
├── nokia.pem
├── nosan.pem
├── nullbytecert.pem
├── nullcert.pem
├── pycacert.pem
├── pycakey.pem
├── revocation.crl
├── secp384r1.pem
├── selfsigned_pythontestdotnet.pem
├── ssl_cert.pem
├── ssl_key.passwd.pem
├── ssl_key.pem
└── talos-2019-0758.pem

I haven't touched their contents or permissions (at least I hope so), so let's what the CI will say :)

I've also checked that Lib/test/certdata/make_ssl_certs.py script still works. It produces new certificates as it should.

@sobolevn
Copy link
Member Author

Aaaand it broke :(

@vstinner vstinner merged commit e57ecf6 into python:main Sep 16, 2023
@vstinner
Copy link
Member

LGTM, merged, thanks @sobolevn :-)

@vstinner vstinner added the needs backport to 3.12 bug and security fixes label Sep 21, 2023
@miss-islington
Copy link
Contributor

Thanks @sobolevn for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 21, 2023
@bedevere-app
Copy link

bedevere-app bot commented Sep 21, 2023

GH-109682 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Sep 21, 2023
@vstinner vstinner added the needs backport to 3.11 only security fixes label Sep 21, 2023
@miss-islington
Copy link
Contributor

Thanks @sobolevn for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 21, 2023
@bedevere-app
Copy link

bedevere-app bot commented Sep 21, 2023

GH-109683 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Sep 21, 2023
csm10495 pushed a commit to csm10495/cpython that referenced this pull request Sep 28, 2023
vstinner pushed a commit that referenced this pull request Oct 10, 2023
…09489) (#109682)

* gh-108303: Move all certificates to `Lib/test/certdata/` (GH-109489)
(cherry picked from commit e57ecf6)

Co-authored-by: Nikita Sobolev <[email protected]>

Python 3.12 backport: update also `test_nntplib`.

Co-authored-by: Nikita Sobolev <[email protected]>
Co-authored-by: T. Wouters <[email protected]>
miss-islington added a commit to miss-islington/cpython that referenced this pull request Oct 10, 2023
…pythonGH-109489) (pythonGH-109682)

* pythongh-108303: Move all certificates to `Lib/test/certdata/` (pythonGH-109489)
(cherry picked from commit e57ecf6)

Co-authored-by: Nikita Sobolev <[email protected]>

Python 3.12 backport: update also `test_nntplib`.

(cherry picked from commit c2d542b)

Co-authored-by: Miss Islington (bot) <[email protected]>
Co-authored-by: Nikita Sobolev <[email protected]>
Co-authored-by: T. Wouters <[email protected]>
vstinner pushed a commit that referenced this pull request Oct 10, 2023
GH-109489) (GH-109682) (#110646)

[3.12] gh-108303: Move all certificates to `Lib/test/certdata/` (GH-109489) (GH-109682)

* gh-108303: Move all certificates to `Lib/test/certdata/` (GH-109489)
(cherry picked from commit e57ecf6)

Python 3.12 backport: update also `test_nntplib`.

(cherry picked from commit c2d542b)

Co-authored-by: Nikita Sobolev <[email protected]>
Co-authored-by: T. Wouters <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants