Questions tagged [pyopenssl]

Pyopenssl is a Python interface to the OpenSSL library.

Pyopenssl is a Python interface to the OpenSSL library.

480 questions
4
votes
1 answer

Using pyOpenSSL to generate p12 / pfx containers

I have just started using pyOpenSSL library to generate certificates and to read existing certs. However, I want to generate a p12/pfx bundle in my program instead of the standard pem files. I wasnt able to find the appropriate API for this. Only…
user775093
  • 699
  • 2
  • 11
  • 22
4
votes
2 answers

How to block SSL protocols in favor of TLS?

How can I block SSL protocols in PyOpenSSL in favour of TLS? I'm using CentOS 7 and have these versions: pyOpenSSL-0.13.1-3.el7.x86_64 openssl-1.0.1e-34.el7_0.7.x86_64 In my config file (this if for a CherryPy app) I have: 'server.ssl_module':…
Sam Roberts
  • 379
  • 6
  • 13
4
votes
1 answer

Python twisted OpenSSL error in Windows

I am trying to run a twisted script that uses SSL on Windows 7 32bit (Python 2.7.8). The script works without error under OSX. I have installed pyOpenSSL via pip and also OpenSSL for Windows, yet when running the application I get: ERROR [Failure…
decentjam
  • 81
  • 5
4
votes
6 answers

Signurl command requires the pyopenssl library in gsutil in google storage in creatiing signed URL

I am trying Create a signed URL with gsutil . following is the command $ gsutil signurl -d 10m path/to/privatekey.p12 gs://bucket/foo mentioned in site https://developers.google.com/storage/docs/accesscontrol I also issued a same like command…
abishkar bhattarai
  • 7,371
  • 8
  • 49
  • 66
4
votes
1 answer

pyOpenSSL and the WantReadError

I have a socket server that I am trying to move over to SSL on python 2.5, but I've run into a snag with pyOpenSSL. I can't find any good tutorials on using it, so I'm operating largely on guesses. Here is how my server sets up the socket: ctx =…
directedition
  • 11,145
  • 18
  • 58
  • 79
4
votes
3 answers

PyOpenSSL: Get a CRL's last update and next update fields

I'm trying to get the dates for a CRL using PyOpenSSL. The CRL class doesn't contain them as accessible members. I'm going through all of the underscore members, but I'd rather not use one of those, as they're not supposed to be 'public'. Any…
user1667153
  • 125
  • 1
  • 3
  • 10
3
votes
0 answers

SSL Verification Failed in AWS Lambda using Python 3.8

I have migrated my Python flask app to AWS Lambda after which I started getting the following error of SSL Verification Failed Currently using AWS CDK to upload the lambda package and deploying it. python 3.8 ssl.SSLEOFError: EOF occurred in…
Inderjeet Singh
  • 556
  • 1
  • 9
  • 22
3
votes
0 answers

CryptographyDeprecationWarning with snowflake.connector.connect

When I run snowflake.connector.connect(**credentials['MY_DATABASE']), I get the following warning: ~/opt/anaconda3/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl/x509.py:14: CryptographyDeprecationWarning: This version of…
Sahar
  • 741
  • 1
  • 8
  • 14
3
votes
1 answer

Python pyOpenssl server doesn't negotiate TLS 1.3

I'm having hard time with pyOpenssl server to negotiate TLS 1.3. I used openssl s_client(1.3 supported) to connect to the server with no luck. However the server works with version TLS 1.2 and below. Could you please help what am I missing? Thanks…
Pr1614
  • 61
  • 1
  • 6
3
votes
1 answer

PyOpenSSL: Force SSL negotiations without sending/receiving?

Is it possible to force PyOpenSSL into performing the SSL negotiation (and, specifically, retrieving the peer's certificate) without trying to send/receive data? Currently, with this code: ssl_soc = SSL.Connection(self._mk_ctx(), plain_soc) …
David Wolever
  • 148,955
  • 89
  • 346
  • 502
3
votes
2 answers

how to load a pkcs12 keystore using python

l used java to create a pkcs12 keystore where l stored two keys, now l want to retrieve these keys using python. ln java l load the keystore and use keystore.getkey(keyalias). how can l do that with python? l first tried pyjks but it wasn't…
3
votes
1 answer

How do I use PyOpenSSL to read a PFX file?

How to use pyopenssl to read a pfx file? And how to sign an XML with this SSL certificate? I'm still having trouble understanding how to read, but I also have no idea how to sign. I thought I'd use the pip signxml library but I do not know if that's…
3
votes
1 answer

How to generate RSA public key from private key?

I was reading a question on SO and find out that we can generate the public key from private key using openssl in python. Now I wonder how this works(the mathematics part) and how can I implement the method in python or in C, without using the…
Dutta
  • 326
  • 1
  • 3
  • 10
3
votes
2 answers

Decrypt String with OpenSSL Issue Output

I've got a Encrypted String, and I need to decrypt it: The information that I have: Encryption Used: RFC3826 (AES-128 ECB) Encrypted String: AjL4iV8YSGnNOCQYOJXIP97GjCAYp2k0QLm56XxJN0p/yu5xQh5uitX3UmfP3bzZaXDd2u6hMwp6cxO3cNL1cg== Key:…
3
votes
1 answer

Python- Urllib2: [Errno 54] Connection reset by peer

Getting the following error when using Urllib2: [Errno 54] Connection reset by peer Here is the code: import urllib2 url = "https://api.thousandeyes.com/"; response = urllib2.urlopen(url, context=ctx); Here is the Error: nnayar$ python…
nnay84
  • 167
  • 1
  • 12