mirror of
https://github.com/python/cpython.git
synced 2025-10-13 18:33:34 +00:00
[3.12] gh-108303: Move all certificates to Lib/test/certdata/
(GH-109489) (#109682)
* gh-108303: Move all certificates to `Lib/test/certdata/` (GH-109489)
(cherry picked from commit e57ecf6bbc
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Python 3.12 backport: update also `test_nntplib`.
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: T. Wouters <thomas@python.org>
This commit is contained in:
parent
5b168fdd6f
commit
c2d542b42c
42 changed files with 32 additions and 29 deletions
|
@ -21,11 +21,13 @@ support.requires_working_socket(module=True)
|
|||
|
||||
here = os.path.dirname(__file__)
|
||||
# Self-signed cert file for 'localhost'
|
||||
CERT_localhost = os.path.join(here, 'keycert.pem')
|
||||
CERT_localhost = os.path.join(here, 'certdata', 'keycert.pem')
|
||||
# Self-signed cert file for 'fakehostname'
|
||||
CERT_fakehostname = os.path.join(here, 'keycert2.pem')
|
||||
CERT_fakehostname = os.path.join(here, 'certdata', 'keycert2.pem')
|
||||
# Self-signed cert file for self-signed.pythontest.net
|
||||
CERT_selfsigned_pythontestdotnet = os.path.join(here, 'selfsigned_pythontestdotnet.pem')
|
||||
CERT_selfsigned_pythontestdotnet = os.path.join(
|
||||
here, 'certdata', 'selfsigned_pythontestdotnet.pem',
|
||||
)
|
||||
|
||||
# constants for testing chunked encoding
|
||||
chunked_start = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue