Questions tagged [pyopenssl]

Pyopenssl is a Python interface to the OpenSSL library.

Pyopenssl is a Python interface to the OpenSSL library.

480 questions
3
votes
1 answer

libcurl link-time ssl backend (openssl) is different from compile-time ssl backend (none/other)

My system is macOS 10.13.1 I was try import pycurl is error ImportError: pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl backend (none/other) I tried these two methods sudo pip uninstall pycurl export…
jianyi
  • 151
  • 1
  • 3
  • 11
3
votes
2 answers

Getting a pyOpenSSL client to use SSL session resume

I've been trying with no success to get my pyOpenSSL client to use TLS/SSL session resume when making several connections sucessively (it's sending http requests) to a Tomcat application server. I'm pretty sure everything is fine on the server end…
user533020
  • 137
  • 1
  • 3
  • 9
3
votes
1 answer

pyOpenSSL's PKCS7 object provide very little information, how can I get the sha1 digest of the public key in the signature

I would like to parse android apk's CERT.RSA in Python. I know it can be parsed with pyOpenSSL import OpenSSL cert = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_ASN1, open('CERT.RSA', 'rb').read()) cert =…
kkzxak47
  • 462
  • 7
  • 16
3
votes
2 answers

Create CSR and self-signed-certificate with pyOpenSSL

using pyOpenSSL I want to create a key pair for self-signing a certificate signing request (csr) a self-signed-certificate When I use the openSSL command line tool I used the following commands to do that: a key pair for self-signing openssl…
Steve Murdock
  • 709
  • 1
  • 10
  • 20
3
votes
3 answers

Is it safe to disable SSL certificate verification in pythons's requests lib?

I'm well aware of the fact that generally speaking, it's not. But in my particular case, I'm writing a simple python web-scraper which will be run as a cron job every hour and I'd like to be sure that it's not a risk to ignore verifying an SSL…
Albert
  • 2,146
  • 10
  • 32
  • 54
3
votes
1 answer

PyOpenSSl version 0.13.1 after pip upgrade

I am on Mac El Capitan. My system shows me stuck on PyOpenSSl version 0.13.1. When I upgrade to 16.2.0, the upgrade is successful. However, when I check the version, it's still on 0.13.1. Why is this? MacBook-Air:include$ sudo pip install pyopenssl…
user2989813
  • 283
  • 1
  • 5
  • 16
3
votes
1 answer

MITM proxy over SSL hangs on wrap_socket with client

I’m in quite a predicament and you are my last hope. I started doing a project making a MITM proxy with ssl. My program uses the HTTP CONNECT method. To keep this concise my program follows the following diagram… Client Proxy …
Peter Krasinski
  • 182
  • 1
  • 10
3
votes
0 answers

PyOpenSSL: How to load every certificate from a certificate chain file?

I'm trying to load all certificates from a certificate chain file, but crypto.load_certificate() seems to only load the first certificate. I've tried SSL.context.load_client_ca(), but I couldn't access the certificates. Do I have to split the…
jackson
  • 386
  • 1
  • 4
  • 21
3
votes
2 answers

Find SSL Version after Handshake in OpenSSL

I want to find out the protocols supported by a target but the problem is that their are quite a number websites which are not supporting a particular version but when i performed handshake it was successful becz target surpassed the version that i…
Hassan Anwer
  • 347
  • 2
  • 14
3
votes
0 answers

Pyglet fails to load swrast_dri.so in Python 3 (Anaconda) when running on a headless server with Xvfb

This works fine in python 2.7, but it fails in python 3.5 (Anaconda): $ xvfb-run -s "-screen 0 1400x900x24" ./anaconda2/envs/python3/bin/python Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 2 2016, 17:53:06) [GCC 4.4.7 20120313 (Red Hat…
MiniQuark
  • 46,633
  • 36
  • 147
  • 183
3
votes
1 answer

Why is pip install pyopenssl==0.13 failing?

I'm trying to install PyOpenSSL 0.13 on my Macbook Pro (OSX version 10.11, El-Capitan). But it keeps failing. These are the steps I took Download and install Command Line Tools (OSX 10.11) for Xcode 7.3.1 from here $ virtualenv my-new-virtualenv $…
Saqib Ali
  • 11,931
  • 41
  • 133
  • 272
3
votes
1 answer

Ubuntu Server 16 unable to install (downgrade) to PyOpenSSL 0.13

Running mark2 to oversee my Minecraft server and my upgrade to Ubuntu 16 LTS has seemingly borked something and I'm unable to figure out how to fix it. Suffice it to say mark2 seems to need PyOpenSSL 0.13 and it appears that the upgrade has forced…
Cryptite
  • 1,426
  • 2
  • 28
  • 50
3
votes
0 answers

Python ssl.wrap_socket blocking

I am trying to implement an SSL connection in Python 2.7.10, but when I call wrap_socket() after accept() it appears to be blocking. I can't see why and looking at the documentation it doesn't talk about. Settings class is: class…
Swatcat
  • 73
  • 6
  • 21
  • 57
3
votes
1 answer

How to get an openssl_decrypt binary output?

I'm am trying to encrypt/decrypt some data using openssl_encrypt/openssl_decrypt. The purpose is as follows: the user enters some data in the GUI, this data is encrypted and stored at the database. Later it will be retrieved and decrypted only for…
blinking_eyes
  • 53
  • 2
  • 7
3
votes
1 answer

Verify signature on X509 certificate in Python

I have an RSA public key and a signed X509 certificate. How can I check that the key signed the certificate? (My example happens to be a self-signed certificate.) Here's what I'm doing now: Generate self-signed cert and convert to DER encoding with…
joelanders
  • 51
  • 1
  • 6