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
V2EX  ›  Python

SSLContext

  •  
  •   Livid · 2013-05-07 06:49:26 +08:00 · 3049 次点击
    这是一个创建于 4020 天前的主题,其中的信息可能已经有所发展或是发生改变。
    现在希望通过 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-05-07 09:25:01 +08:00
    什么叫有效性?
    est
        2
    est  
       2013-05-07 09:55:52 +08:00
    dexter
        3
    dexter  
       2013-05-07 19:21:43 +08:00
    利用command line 二进制工具可以么
    phuslu
        4
    phuslu  
       2013-05-07 19:26:53 +08:00
    pyOpenSSL 或者 tlslite
    Livid
        5
    Livid  
    MOD
    OP
       2013-06-15 10:07:30 +08:00
    Ultratude
        6
    Ultratude  
       2013-06-17 21:28:30 +08:00
    @Livid 找到我们学校网站去了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   978 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 20:21 · PVG 04:21 · LAX 13:21 · JFK 16:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.