我的web server 顯示錯誤訊息:
File "/usr/local/lib/python3.8/dist-packages/tornado/netutil.py", line 576, in ssl_options_to_context context.load_cert_chain( ssl.SSLError: [SSL: EE_KEY_TOO_SMALL] ee key too small (_ssl.c:4046)
解法,透過下面的指令來建立私有的憑證
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.pem
You are right, increase your rsa to 2048, this will solve your problem.
資料來源
SSLError: [SSL: EE_KEY_TOO_SMALL] ee key too small (_ssl.c:4022) on Ubuntu when starting jupyter notebook
https://stackoverflow.com/questions/67753969/sslerror-ssl-ee-key-too-small-ee-key-too-small-ssl-c4022-on-ubuntu-when