Questions tagged [pyopenssl]

Pyopenssl is a Python interface to the OpenSSL library.

Pyopenssl is a Python interface to the OpenSSL library.

480 questions
0
votes
1 answer

How do I identify an issue with crypto while running an Ansible playbbok?

Trying to run a simple gather_ facts playbook using Ansible. I can connect via SSH using the user credentials with no issues but for a reason I cannot get my head around the playbook fails with the following message: 2017-10-07 22:57:44,248…
Jose H. Rosa
  • 514
  • 4
  • 8
0
votes
1 answer

Cannot send ALPN request to APNS with python 3.5 and Hyper

I am trying to implement APNS service on my Python REST server with Hyper. Since APNS now require HTTP/2 (ALPN) protocol, I was not able to get_response() from Hyper connection. It throws the below error. Traceback (most recent call last): File…
Vincent Lam
  • 151
  • 2
  • 2
  • 10
0
votes
1 answer

What do I need to distribute (keys, certs) for Python w/ SSL-socket connection?

I'm trying to write a generic server-client application that will be able to exchange data amongst servers. I've read over quite a few OpenSSL documents, and I have successfully setup my own CA and created a cert (and private key) for testing…
fandingo
  • 1,330
  • 5
  • 21
  • 31
0
votes
1 answer

Error with Python crypto on Windows

I'm running a basic crypto program written in Python, and while it worked fine on OS X, I cannot get it to run on Windows (either in 3.6/Anaconda that was installed with VS 2017 when I checked in the setup that I wanted Python installed, and in a…
Amanda_Panda
  • 1,156
  • 4
  • 26
  • 68
0
votes
2 answers

Python Twisted: Create SSLv2 context

I'm making an game server emulator, the game is pretty old and uses insecure SSLv2 protocol for communicating, i can decrypt packet trough this: ssl_sock = ssl.wrap_socket(sock, keyfile="Certificates/bfbc2.key", certfile="Certificates/bfbc2.crt",…
Marek Grzyb
  • 177
  • 13
0
votes
0 answers

Connecting to Google Spreadsheet using gspread not working

I have a python script that I'm running from a system running openWrt that uses gspread to connect to a Google Spreadsheet. Here is the code: #!/usr/bin/python import sys import json import gspread from oauth2client.client import…
Olivier Poulin
  • 1,778
  • 8
  • 15
0
votes
1 answer

Scrapy in Debian Stretch - ImportError: libssl.so.1.0.0

I am trying to get my Scrapy crawler running again. I have just installed Debian Stretch, 64 bit. Of course I installed python and python-scrapy. I get to the virtualenv (Requirement already satisfied) but I get the following ImportError:…
0
votes
3 answers

Can a certificate handshake by completed if SSL Labs shows " This server's certificate chain is incomplete. Grade capped to B."?

I'm trying the use urllib.request.urlopen on a website starting with "https". Error output is: ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed There are many great threads which cover this error. Including this one which…
Bob
  • 31
  • 6
0
votes
1 answer

Signing huge file with pyOpenSSL

I need to create SSL signatures for large *.tar.gz files (gigabytes of data) using Python 3 and pyopenssl module. Below is simplified excerpt of my code (that works). The problematic line is the following one: bytes_to_sign = sign_file.read() #…
patryk.beza
  • 4,876
  • 5
  • 37
  • 56
0
votes
0 answers

pyopenssl send('GET / HTTP/1.0\r\n\r\n' doesn't returns 'HTTP/1.1 400 Bad Request\

I'm creating a SSL Connection using PyOpenSSL and the trying to make a GET call but i run into : `'HTTP/1.1 400 Bad Request\r\nDate: Fri, 14 Jul 2017 20:04:51 GMT\r\nServer: Apache/2.4.18 (Ubuntu)\r\nContent-Length: 305\r\nConnection:…
user1999223
  • 41
  • 1
  • 6
0
votes
1 answer

Python cryptography module import error

I am attempting to run a website that is built on CherryPy and working on deploying it in a new environment with Python 2.7.13 and been working to get everything necessary setup. Currently I am stuck on importing pyOpenSSL to enable SSL support but…
stephen
  • 506
  • 1
  • 5
  • 17
0
votes
1 answer

How to correct these errors from PIP install?

I am trying to deploy pyopenssl via pip install pyopenssl on centos 6.9 running cpanel. I get this: File "/tmp/pip-build-SN_BEg/cryptography/cffi-1.10.0-py2.6-linux-x86_64.egg/cffi/api.py", line 46, in __init__ import _cffi_backend as…
Uhl Hosting
  • 57
  • 12
0
votes
1 answer

Google Assistant getting getting SSL ERROR

I am trying to use google-assistant SDK on IFC6410 linux platform. But i am getting SSL: CERTIFICATE_VERIFY_FAILED error in below command. google-oauthlib-tool --client-secrets…
0
votes
1 answer

Connections to api.github.com not working after windows 10 creator's update

I've been doing some laravel development over the past few months with no issue. After the Windows 10 Creator's update I've been unable to get any OpenSSL related functionality to work. They all point to the same error code: 1. First failed attempt…
0
votes
1 answer

OpenSSL ask for private key

i'm using a python client that makes request to a push server, and has the option to use certificates with the lib OpenSSL for python(pyopenssl), but this client ask me for the private key(can be on the same file or different path. already checked…
Omar Herrera
  • 63
  • 2
  • 10