[issue46322] Invalid file path of SSLKEYLOGFILE throw FileNotFoundError

2022-01-10 Thread SinaGhaaf
Change by SinaGhaaf : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46322> ___ ___ Python-bugs-list

[issue46322] Invalid file path of SSLKEYLOGFILE throw FileNotFoundError

2022-01-09 Thread SinaGhaaf
New submission from SinaGhaaf : An existence check of 'keylogfile' is missed at https://github.com/python/cpython/blob/main/Lib/ssl.py#L779, if the file path does not exist, it tries to set 'context.keylog_filename' to an invalid file, and the result would be 'FileNotFoundError