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
0 answers

Using rsa public key to decrypt data encrypted with private key in python

I am trying to decrypt data with rsa public key which is encrypted in java program with private key. There is an answer which implement decryption in java program. The problem is that I have to decrypt it in python program, but I found there is…
triostones
  • 51
  • 7
0
votes
1 answer

Unable to sent mail by using gmail smtp server

Hi i am unable to use gmail smtp service to send email from my website which is develop by using cakephp3.x of the php framework. Blow is the error i am getting stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:…
pkk
  • 283
  • 4
  • 19
0
votes
1 answer

Running security import command from Python has different behaviour than command line

I am trying to import a pkcs#12 certificate into OS X Keychain using the following command: security import filename -k ~/Library/Keychains/login.keychain -P password -f pkcs12 In python I use subprocess like this: if os.path.isfile(_file) and…
Alessandro
  • 2,378
  • 2
  • 15
  • 13
0
votes
0 answers

SSL error while wrapping the socket with certificate created using pyopenssl crypto module

I am creating a certificate using crypto module and signing it with Intermediate certificate(locally generated CA and Intermediate) . I am wrapping the ssl socket with that cert to build a SSL channel. But it is throwing one error: Traceback (most…
0
votes
1 answer

crypto.load_certificate() throws 'no start line'

I am trying to open an encoded X509 certificate using the following command !/usr/bin/python from OpenSSL import crypto, SSL crypto.load_certificate(crypto.FILETYPE_PEM, 'ca_file.pem') But after execution I get the following error Traceback (most…
Suren
  • 47
  • 2
  • 10
0
votes
1 answer

Why is context.set_tmp_ecdh() not defined in pyOpenSSL?

I'm trying to implement the answer found at Python Paste SSL server with TLSv1.2 and Forward Secrecy. How do I use context.set_tmp_ecdh()? That method is not defined on either my Linux or Windows machines. It is in the pyOpenSSL docs, and various…
BuvinJ
  • 10,221
  • 5
  • 83
  • 96
0
votes
0 answers

Issues with back-end verification of google sign-in authentication token on Google app engine

I am trying to integrate Google Sign-in into my iOS app. I am able to show the logon button in my app and get the Device authentication token after successful login. My backend is running on Google App engine. I am sending the device…
Smart Home
  • 801
  • 7
  • 26
0
votes
1 answer

pyOpenSSL version in identity-toolkit-python-client

While automating a clean system install I came across the following: I install sudo apt-get -y install libssl-dev libffi-dev pip install pyopenssl pip install service_identity And then later on I do a pip install…
Daniel F
  • 13,684
  • 11
  • 87
  • 116
0
votes
1 answer

Twisted SNI with deferreds

In our system, virtual hosts configuration is stored in redis. During connection setup, when the SNI is received, we would like to query redis for the correct certificate and key pair to use for the TLS connection and create a new Context instance…
GaretJax
  • 7,462
  • 1
  • 38
  • 47
0
votes
1 answer

I cant upgrade pyOpenSSL on ubuntu

Im working within the SaltStack system on a ubuntu box and Im trying to figure out how to upgrade pyOpenSSL to above 0.14 as requested by the system. However, i cant find any way to do that. anyone can shed some light on how this is done I'd be…
0
votes
1 answer

Making MITM proxy run on Mac

I need to make use of python's mitmproxy. I have installed it successfully. However when I run mitmproxy command on my terminal it gives me a stack trace like the below : File "/usr/local/bin/mitmproxy", line 9, in…
qre0ct
  • 5,680
  • 10
  • 50
  • 86
0
votes
1 answer

Reading application data from a TLS connection in Python

I have used PyOpenSSL to create a connection object, and I have managed to set up a connection with a library I am testing. I am using the bio_read and bio_write methods as I am not using a socket to transmit the data. I now want to pass encrypted…
Sam
  • 3,070
  • 3
  • 20
  • 26
0
votes
1 answer

Workarounds to get Google sign-in functioning with Python 2.6 and pyOpenSSL 0.10-2

I'm trying to get Google sign-in working using their Python API but the server I'm on (4UHosting) has Python 2.6 and pyOpenSSL 0.10-2 (5-years old). This means that the API's call to OpenSSL.crypto.verify() fails as it doesn't exist in this…
Cyrille
  • 3,427
  • 1
  • 30
  • 32
0
votes
1 answer

Packaging PyOpenSSL with py2exe

I have write a python script for accessing Google's spreadsheets by it's API. Thus, I use the 3-party module "oauth2client" to achieve this goal, and importing it in my python script like this: from oauth2client.client import…
skydome20
  • 3
  • 4
0
votes
1 answer

OPENSSL_1.0.1 Error When Executing Job Inside Jenkins

I've written a python script using scrapy to crawl a site, and I'm trying to set up a job through jenkins to call the script nightly (this way it's very easy to see the output). The machine I'm running jenkins on is a bitnami VM inside google…
Simon
  • 1,819
  • 3
  • 18
  • 26
1 2 3
31
32