Python - requests.exceptions.SSLError - dh key too small

前端 未结 7 884
梦如初夏
梦如初夏 2020-12-08 14:21

I\'m scraping some internal pages using Python and requests. I\'ve turned off SSL verifications and warnings.

requests.packages.urllib3.disable_warnings()
p         


        
7条回答
  •  失恋的感觉
    2020-12-08 15:17

    On CentOS 7, search for the following content in /etc/pki/tls/openssl.cnf:

    [ crypto_policy ]
    .include /etc/crypto-policies/back-ends/opensslcnf.config  
    [ new_oids ]  
    

    Set 'ALL:@SECLEVEL=1' in /etc/crypto-policies/back-ends/opensslcnf.config.

提交回复
热议问题