• python 解决 SNIMissingWarning 和 InsecurePlatformWarning 警告


    python 解决 SNIMissingWarning 和 InsecurePlatformWarning 警告

    在想要获取 https 站点的资源时,会报出 SNIMissingWarning 和 InsecurePlatformWarning 警告

    SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. 
    
    This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
      SNIMissingWarning
     A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
      InsecurePlatformWarning 
    

    解决方法:

    在 cmd 中输入:

    pip install pyopenssl ndg-httpsclient pyasn1
    
  • 相关阅读:
    java线程
    面向切面编程
    控制反转IOC与依赖注入DI
    phpexecel 导入导出,格式
    PHPExcel设置数据格式的几种方法
    九度oj 题目1416:猴子吃坚果
    九度oj 题目1397:查找数段
    poj 1065 Wooden Sticks
    poj 3181 Dollar Dayz
    poj 1742 Coins
  • 原文地址:https://www.cnblogs.com/yldf/p/6667942.html
Copyright © 2020-2023  润新知