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

Both builtin and pyopensssl doesn't work with cherrypy

I secured my cherrypy webservice weeks ago on my old pc. Then i had problems so i exported my codes on a new one. Before that everything worked great. Now when i use builtin ssl my webpage stops to respond because cherrypy doesn't respond (even in…
Sam
  • 51
  • 6
0
votes
0 answers

extract asn1parse content from p7s file

I am trying to extract content(asn1parse) from p7s file and using below code, but looks like i miss something. I am new with pyOpenSSL, OpenSSL and python itself. Can you anyone please point me what i am missing. import sys from OpenSSL import…
IrAM
  • 1,720
  • 5
  • 18
0
votes
1 answer

Importing eventlet SSL results in: ModuleNotFoundError: No module named 'OpenSSL.tsafe'

Why am I getting the following import error when I try to import eventlet's SSL module: ModuleNotFoundError: No module named 'OpenSSL.tsafe' Is eventlet's OpenSSL not compatible with recent versions of pyOpenSSL? Reproduction Steps Using the…
firebush
  • 5,180
  • 4
  • 34
  • 45
0
votes
1 answer

python3::ssl:: _local_ certificate validation

I am trying to do (python 3.6) the equivalent of openssl verify -CApath my_dir_of_CA_certs my_cert_from_one_of_those_CAs I keep looking over ssl and pyOpenSSL but nothing seems apparent.. any form of verification for these modules require a…
Adrian Sevcenco
  • 311
  • 1
  • 8
0
votes
0 answers

Facing Invalid DNS-ID while sending mail using smtp.gmail.com

I am trying to send mail using twisted esmtp using smtp.gmail.com. While I am trying to send mail using host as "smtp.gmail.com" the code works fine and mail was sent successfully. But when I am trying to use an IP ( smtp.gmail.com 'ip') in host I…
Ashish Kumar Verma
  • 1,322
  • 1
  • 13
  • 21
0
votes
1 answer

PyOpenSSL set verify flags on OpenSSL.SSL.Context

In PyOpenSSL, when verifying certificate chains offline, I can set verify flags: # # # # # # # # # # # OpenSSL.Crypto # # # # # # # # # # # trusted_certs = X509Store() # init Certificate store …
rustyMagnet
  • 3,479
  • 1
  • 31
  • 41
0
votes
0 answers

while assigning the path in python for openssl in python is not working

p12_name = G72XN87TV print(repositoryPath+ios_team_id) cert_path1 = str(home + "/Documents/Automator/repository/"+ios_team_id+"/certs/distribution/"+p12_name+".cer") print(cert_path1) cert_path = '\"'+cert_path1+'\"' print(cert_path) …
0
votes
1 answer

How to make openssl ocsp responder busy

I am new to ssl environment, please bear with me. The information what I know I am putting here. By reading the different page of openssl…
Mallikarjunarao Kosuri
  • 1,023
  • 7
  • 25
  • 52
0
votes
0 answers

install pip on windows 10 with python 2.7

I am new to python and i need to install virtualenv. I need to use python 2.7 on windows. First I tried installing pip by downloading get-pip.py and running below command python get-pip.py then I got below…
Ramandeep Mehmi
  • 81
  • 1
  • 13
0
votes
1 answer

Python zeep soap request signature fails: cannot load cert

I am trying to make a SOAP request using Python zeep, which requires a sha256 signature with RSA 2048. For some reason I am unable to load the signature, and I get 'signature fails: cannot load cert' error upon trying to send the request. sample…
Petru Tanas
  • 1,087
  • 1
  • 12
  • 36
0
votes
1 answer

mTLS using Azure Function HTTP Trigger?

I'm working at building an auth token server using a Python Azure Function with HTTP trigger. The goal is to use mutual TLS (mTLS) authentication. The way it will work: Client sends http request to Function endpoint with two headers: requestor-id…
SeaDude
  • 3,725
  • 6
  • 31
  • 68
0
votes
0 answers

Python function to Create CSRs with SAN

i found the function that creates the CSRs on this thread: Generating a CSR in Python However it has no mention to how i could add SAN (SubjectAltName) to the CSR which is important for the browsers to consider the certificate generated using this…
0
votes
1 answer

crypto.load_certificate / Get public key encryption

How is it possible from crypto.load_certificate to get the public key encryption ? (for example "RSA (2048 Bits"). I can get the public key easily as below : from OpenSSL import crypto cert = crypto.load_certificate(crypto.FILETYPE_PEM,…
John
  • 89
  • 1
  • 8
0
votes
1 answer

How do I get NPN support for PyOpenSSL?

I have an application that uses PyOpenSSL. It depends upon the use of NPN. This used to work, but when I've re-created my virtual environment, the version of openssl PyOpenSSL is built against no longer supports NPN: Traceback (most recent call…
firebush
  • 5,180
  • 4
  • 34
  • 45
0
votes
0 answers

New to REST API and P12 certificates in Python and Requests

I was hoping to get some help in making a API Get request using the requests library via Python as I want to automate some API test scripts. I have access to the requests library but was wondering what is the proper syntax to authenticate a .p12…