问题标签 [pyopenssl]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - 如何为 Python 安装 OpenSSL
我需要在我的 python2.7 上安装 OpenSSL。
我试过了
我得到了以下
有人知道原因吗?
系统:Ubuntu 10.04
python - 在 PyOpenSSL 中验证客户端证书
我正在编写一个需要在客户端浏览器中安装证书的应用程序。我在“上下文”对象的 PyOpenSSL 文档中找到了这一点,但我看不到任何关于回调应该如何验证证书的信息,只是它应该以某种方式验证。
我告诉 Context 对象我的(自签名)密钥在哪里(见下文),所以我想我不明白为什么这还不足以让库检查客户端提供的证书是否有效。在这个回调函数中应该做什么?
警告:在这里编码是为了好玩,绝对不是专业人士,所以如果我的 Q 揭示了我对 SSL 的完全跛足、幼稚和/或根本缺乏理解,请不要太粗鲁!
谢谢 :)
罗杰
python - 在 Windows 的 virtualenv 中安装 scrapy/pyopenssl
我正在尝试在 Windows XP(32 位)virtualenv 上安装 scrapy :
安装程序吐出这个模棱两可的错误消息:
我应该如何配置 openssl / pyOpenSSL 以使 pip 工作?
pyopenssl - 如何将 PyOpenSSL 对象转换为 PEM 编码的字符串?
我正在尝试使用 pyOpenSSL 从 PKCS12 文件中提取私钥和证书,并且很难弄清楚如何将数据转换为 PEM 编码的字符串。下面的问题暗示这是可能的,但我无法弄清楚。
python - PyOpenSSL 将证书对象转换为 .pem 文件
我想通过套接字将证书从“证书颁发机构”发送到节点。我有一个使用此示例创建的证书 https://skippylovesmalorie.wordpress.com/2010/02/12/how-to-generate-a-self-signed-certificate-using-pyopenssl/ 我如何将其转换为 . pem 文件,因此我可以通过套接字将其作为字符串发送,然后在另一端将其转换回 .pem 并使用 get_certificate 从中提取此证书。 Python:使用 pyOpenSSL.crypto 读取 pkcs12 证书 这可能是一种很老套的方法,但我想为自己简化一下。(或不)
我正在重新提出这个人的问题没有回答 如何将 PyOpenSSL 对象转换为 PEM 编码的字符串?
python - 安装 pyopenssl 时 Windows 7 Openssl 64 位错误
我想安装scrapy,但是由于使用pip时出现pyopenssl错误,它无法完成安装。它是一个 64 位的机器。
我继续收到错误。
所以我四处寻找安装 openssl for 64bit 的答案。我找到了openssl 然后我安装了。
但是,在尝试安装 pyopenssl 时,我仍然收到相同的错误,有什么想法吗?
python - 无法加载公钥
我在调试需要使用公钥来签署证书的 django/python 应用程序时遇到困难。1. 我使用以下命令从我的私钥创建了一个 PEM 格式的密钥
关键在下面
在我的 python 应用程序中,我正在使用 OpenSSL 并尝试使用
运行 django 应用程序时,我在上面的行中收到以下错误。
这是我从文件中读取公钥的方式
感谢解决此问题的任何帮助。提前致谢。
python - Python - SSL - wrong version number
This will probably be just another unsolved thread but i'll fill in some info anyway.
I can't get my SSL wrapping together not even for a second. Any ideas to what i'm doing wrong with my wrap_socket() and do_handshake()?
The key files appear to be 100% perfect, and i've tried with AND without the .recv() before the handshake. That just generates these depending on where i put the recv():
SSL3_GET_CLIENT_HELLO:wrong version number
SSL3_GET_RECORD:wrong version number
For the record, if it's not obvious or i'm wrong, it's the handshake that fails :)
I modified the code a bit, trying SSLv3 and also change the position of the wrapping a bit:
Now i get with the newsocket.recv(32):
ssl.SSLError: [Errno 1] _ssl.c:1331: error:140940E5:SSL routines:SSL3_READ_BYTES:ssl handshake failure
and without:
ssl.SSLError: [Errno 2] _ssl.c:490: The operation did not complete (read)
Also: i refuse to use Twisted
Scaling things down:
This works just as good as the "native" ssl library. However now i get this error:
OpenSSL.SSL.Error: [('SSL routines', 'SSL23_READ', 'ssl handshake failure')]
This is where i'm at now:
This works "prefectly" in Firefox, but NOT in Google Chrome. Why? what's the difference? -.-
python - 使用 PyInstaller 将 pyOpenSSL 打包成 windows 可执行文件
我正在尝试将 pyOpenSSL 包包含到虚拟环境中的可执行文件中。可执行文件构建时没有错误,但是当我运行它时失败并出现错误“DLL 加载失败:找不到指定的模块”。
经过调查,pyOpenSSL 中的两个 DLL(libeay32.dll 和 ssleay32.dll)似乎未包含在可执行文件中。我最终通过将 DLL 放在路径上并运行可执行文件来证明这一点。
任何人都可以建议最简单的方法来强制将丢失的 DLL 包含到包中。
非常感谢
java - 自动获取中间证书的代码
安装 SSL 证书时,还应包括中间证书。
我处理了很多 SSL 证书,并且花费了大量时间来追踪链中的中间件。
我想编写自动获取中间体的代码。我使用python和java,我不太关心实现。(运行命令和解析输出或使用一些本机 API)。
在我看来,这是一个非常有用的算法,我相信有人已经写过它。
- 是否有可以执行此操作的 openssl 命令?搜索它,但找不到。
- 有没有更好的方法 - 使用 python / Java ..
谢谢。