V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Livid
268.79D
569.43D
V2EX  ›  Python

SSLContext

  •  
  •   Livid ·
    PRO
    · May 7, 2013 · 3592 views
    This topic created in 4745 days ago, the information mentioned may be changed or developed.
    现在希望通过 Python 来验证磁盘上的 private key / certificate 文件的有效性,但是看了文档之后发现貌似 SSLContext 只在 Python 3 里存在:

    http://docs.python.org/3/library/ssl.html#ssl-contexts

    在 Python 2 里是没有的:

    http://docs.python.org/2/library/ssl.html

    那么要在 Python 2.7 里做这件事情的话,有什么简便可靠的方式么?
    6 replies    1970-01-01 08:00:00 +08:00
    julyclyde
        1
    julyclyde  
       May 7, 2013
    什么叫有效性?
    est
        2
    est  
       May 7, 2013
    dexter
        3
    dexter  
       May 7, 2013
    利用command line 二进制工具可以么
    phuslu
        4
    phuslu  
       May 7, 2013
    pyOpenSSL 或者 tlslite
    Livid
        5
    Livid  
    MOD
    OP
    PRO
       Jun 15, 2013
    Ultratude
        6
    Ultratude  
       Jun 17, 2013
    @Livid 找到我们学校网站去了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2798 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 14:14 · PVG 22:14 · LAX 07:14 · JFK 10:14
    ♥ Do have faith in what you're doing.