This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, pablogsal, steve.dower, vstinner
Date 2021-06-02.14:54:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
On the main branch, I can reproduce test_pha_required_nocert() failure:

vstinner@DESKTOP-DK7VBIL C:\vstinner\python\main>python -m test test_ssl -u all -v -F -j5 -m test_pha_required_nocert

test_pha_required_nocert (test.test_ssl.TestPostHandshakeAuth) ...  server:  new connection from ('', 57456)
 client cert is None
 client did not provide a cert
 server: connection cipher is now ('TLS_AES_256_GCM_SHA384', 'TLSv1.3', 256)
TLS: (<ssl.SSLSocket fd=644, family=AF_INET, type=SOCK_STREAM, proto=0, laddr=('', 57455), raddr=('', 57456)>, 'write', TLSVersion.TLSv1_3, _TLSContentType.ALERT, _TLSAlertType.CERTIFICA
TE_REQUIRED, b'\x02t')
Test server failure:
Traceback (most recent call last):
   File "C:\vstinner\python\main\lib\test\", line 2444, in run
    msg =
   File "C:\vstinner\python\main\lib\test\", line 2421, in read
   File "C:\vstinner\python\main\lib\", line 1131, in read
 ssl.SSLError: [SSL: PEER_DID_NOT_RETURN_A_CERTIFICATE] peer did not return a certificate (_ssl.c:2522)

FAIL: test_pha_required_nocert (test.test_ssl.TestPostHandshakeAuth)
Traceback (most recent call last):
  File "C:\vstinner\python\main\lib\test\", line 4458, in test_pha_required_nocert
    with self.assertRaisesRegex(
AssertionError: SSLError not raised
Date User Action Args
2021-06-02 14:54:20vstinnersetrecipients: + vstinner, christian.heimes, steve.dower, pablogsal
2021-06-02 14:54:20vstinnersetmessageid: <>
2021-06-02 14:54:20vstinnerlinkissue43921 messages
2021-06-02 14:54:20vstinnercreate