Python中的OpenSSL [英] OpenSSL in Python

查看:63
本文介绍了Python中的OpenSSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我需要安装什么来获得以下代码(Win XP,

Python 2.4.2)

来自OpenSSL导入SSL

导入配置


KEY_FILE = config.SSL_KEY_FILE

CERT_FILE = config.SSL_CERT_FILE

----------------------------------


我一直在寻找OpenSSL for python。我发现了pyOpenSSL,但是它需要OpenSSL库,而我只能在
http://www.openssl.org/ ,但不知道如何安装。


其他的是配置模块......我迷路了。有人知道吗? :-S


我的主要目的是通过SSL连接启用xml-rpc服务器。


谢谢

Daniel

Hi to all,

What do I have to install to get the following code work (Win XP,
Python 2.4.2)
from OpenSSL import SSL
import config

KEY_FILE = config.SSL_KEY_FILE
CERT_FILE = config.SSL_CERT_FILE
----------------------------------

I''ve been looking for OpenSSL for python. I found pyOpenSSL, but it
requires the OpenSSL library, which I only found on
http://www.openssl.org/, but don''t know how to install.

Other thing is the "config" module... I''m lost. Someone knows? :-S

My main purpose is to enable xml-rpc server over an SSL connection.

Thanks

Daniel

推荐答案

dcrespo启发我们:
dcrespo enlightened us with:
我一直在寻找用于OpenSSL for python。我找到了pyOpenSSL,但是它需要OpenSSL库,我只在
上找到了 http://www.openssl.org/ ,但不知道如何安装。
I''ve been looking for OpenSSL for python. I found pyOpenSSL, but it
requires the OpenSSL library, which I only found on
http://www.openssl.org/, but don''t know how to install.




Ehm ......不会那么你的问题不太适合

OpenSSL新闻组/邮件列表/论坛/其他什么?


Sybren

-

世界的问题是愚蠢。并不是说应该对愚蠢的死刑进行处罚,但为什么我们不要仅仅拿掉

安全标签来解决问题呢? br />
Frank Zappa



Ehm... wouldn''t your question then not be more appropriate on the
OpenSSL newsgroup/mailinglist/forum/whatever?

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don''t we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa


>那么你的问题不是更适合
> wouldn''t your question then not be more appropriate on the
OpenSSL新闻组/邮件列表/论坛/其他什么?
OpenSSL newsgroup/mailinglist/forum/whatever?




好​​吧,我想因为python是我希望它运行的语言,我在这里问它。

OpenSSL是用C语言编写的,所以它们不会帮助我。我需要正确的

包装到那个C库。


谢谢。



Well, I think that because python is the language where I want it to
run, I ask it right here.
OpenSSL is written in C, so they wont help me. I need the right
wrappers to that C library.

Thanks.


首先,PYTHON OpenSSL C包装器是否需要运行。

其次,如果您不知道如何回答,请将您的意见限制为

你自己。


谢谢。

First, is the PYTHON OpenSSL C wrapper what I need to get running.
Second, if you don''t know how to answer, then limit your opinion to
yourself.

Thanks.


这篇关于Python中的OpenSSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆