[New-bugs-announce] [issue45342] wrap_socket fails when load_cert_chain is called without setting the ciphers

shreya report at bugs.python.org
Fri Oct 1 11:51:56 EDT 2021


New submission from shreya <shreya.dhareshwar at gmail.com>:

Example:

self.socket = ssl.wrap_socket(socket.socket(self.address_family, self.socket_type),
                                              keyfile=keys, certfile=certs, server_side=True, ciphers="DEFAULT at SECLEVEL=1")

Gives the following exception -

 File "ssl.py", line 1402, in wrap_socket
    context.load_cert_chain(certfile, keyfile)
ssl.SSLError: [SSL: EE_KEY_TOO_SMALL] ee key too small (_ssl.c:4023)

----------
assignee: christian.heimes
components: SSL
messages: 403019
nosy: christian.heimes, shreya1312
priority: normal
pull_requests: 27046
severity: normal
status: open
title: wrap_socket fails when load_cert_chain is called without setting the ciphers
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45342>
_______________________________________


More information about the New-bugs-announce mailing list