V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
210.03D
526.48D
V2EX  ›  Python

SSLContext

  •  
  •   Livid ·
    PRO
    · 2013 年 5 月 7 日 · 3473 次点击
    这是一个创建于 4643 天前的主题,其中的信息可能已经有所发展或是发生改变。
    现在希望通过 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 条回复    1970-01-01 08:00:00 +08:00
    julyclyde
        1
    julyclyde  
       2013 年 5 月 7 日
    什么叫有效性?
    est
        2
    est  
       2013 年 5 月 7 日
    dexter
        3
    dexter  
       2013 年 5 月 7 日
    利用command line 二进制工具可以么
    phuslu
        4
    phuslu  
       2013 年 5 月 7 日
    pyOpenSSL 或者 tlslite
    Livid
        5
    Livid  
    MOD
    OP
    PRO
       2013 年 6 月 15 日
    Ultratude
        6
    Ultratude  
       2013 年 6 月 17 日
    @Livid 找到我们学校网站去了。
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   3853 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 00:54 · PVG 08:54 · LAX 16:54 · JFK 19:54
    ♥ Do have faith in what you're doing.