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

stripe.error.APIConnectionError connected to openssl

I am dealing with the following error Traceback (most recent call last): File "once.py", line 1757, in once() File "once.py", line 55, in once stripe.Charge.all() File "/Library/Python/2.7/site-packages/stripe/resource.py", line…
carl
  • 4,216
  • 9
  • 55
  • 103
0
votes
2 answers

How use public key with pyOpenSSL for verify a signed message?

I try to use pyOpenSSL for signed a data, I create key pair (private and publique) and certificate. I'm a beginner with this technology, I use OpenSSl, but if you have suggestions for generate a signed message with private and public key in python,…
user6604248
0
votes
1 answer

OpenSSL SSL:CERTIFCATE_VERIFY_FAILED

I'm trying to issue a get request to a https url which has a restful api that will respond back with an image that I wish to save off. I'm using python 3.5 on windows and the requests lib to make the https request. I'm on a network in which every…
user2561417
  • 295
  • 4
  • 13
0
votes
1 answer

Trying to read CRL pem file in python with OpenSSL

I have CRL files which I need to read issuer, last update and next update information. However I am only able to read revoked as given below. crl = crypto.load_crl(crypto.FILETYPE_PEM, pem) revoked_list = crl.get_revoked() I am using Python 2.7…
zenprogrammer
  • 623
  • 1
  • 7
  • 20
0
votes
1 answer

Vagrant Up: InsecurePlatformWarning

I'm trying to do vagrant up but keep running into this error: ==> default: IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/_billiard.so' ==> default:…
Nato522
  • 69
  • 13
0
votes
1 answer

Connecting to an ipv6 ssl server using pyopenssl

I need to connect to ipv6 server using pyopenssl .Is that even possible?For ipv4 i don't have any problem.This is what i'v tried for ipv6: ctx = SSL.Context(SSL.SSLv23_METHOD) ctx.set_verify(SSL.VERIFY_NONE, verify_cb) ctx.use_privatekey_file…
Vinod Pn
  • 266
  • 1
  • 2
  • 10
0
votes
2 answers

Exception: Cannot import pyOpenSSL

I'm attempting to get an ansible script working to simply ping WINDOWS guests from an ansible control server, here are my files : hosts.yml [winsrvrs] server.domain.com **group_vars/all.yml** ansible_user: domain\\userID ansible_password:…
0
votes
1 answer

Add https redirect in Python3 Mockserver

we have this mockserver that is now serving https:// requests, and if we remove the ssl wrapping (ssl.wrap_socket(myServer.socket,keyfile='key.pem',certfile= 'cert.pem', server_side=True), the server only serves http:// requests. Is there any way…
nhrcpt
  • 862
  • 3
  • 21
  • 51
0
votes
1 answer

Attribute Error: 'module' object has no attribute 'DTLSv1_METHOD'

from OpenSSL import SSL import sys, os, select, socket cudp = SSL.Context(SSL.DTLSv1_METHOD) Error: Attribute Error: 'module' object has no attribute 'DTLSv1_METHOD' Python 2.7.6 OpenSSL 1.1.0e
mwweb
  • 7,625
  • 4
  • 19
  • 24
0
votes
1 answer

PyAPN right way to create PEM files

I know this might be due to lack of better knowledge, but I seem not to be able to get this running. What is the right way as of today how to create the correct certificates / pem files for PyAPN? There are so many instructions at different dates…
0
votes
1 answer

pyOpenSSL X509 extension syntax error while adding authorityInfoAccess (AuthorityInfoAccessSyntax)

I'm trying to add an authorityInfoAccess extension to an X509 Certificate using pyOpenSSL library version 0.13 Running import OpenSSL url = 'URI:https://localhost:12345' ext = OpenSSL.crypto.X509Extension('authorityInfoAccess', 0,…
0
votes
1 answer

keep getting SSL error when making a get request in python

I'm making a simple get request as follows: import requests response = requests.get('url') And it errors out with the following output: Traceback (most recent call last): File…
Albert
  • 2,146
  • 10
  • 32
  • 54
0
votes
1 answer

can't use scrapy althought all instalation stages done properly

I have a project related to NLP course, which is about to classify colloquial dialects in Arabic. I need to scrap a lot of data from different domains to tbe train properly. I'm using Python 2.7 on Windows 10 64-bit with Eclipse IDE (using PyDev32),…
A.Khateeb
  • 1
  • 3
0
votes
2 answers

Pushbullet and EOF occurred in violation of protocol (_ssl.c:590)

Since 2 days ago the Pushbullet Kodi addon stop working, throwing this error: EOF occurred in violation of protocol (_ssl.c:590) The GET is made through httplib2 and you can see the simple code there. The strange is that also with the openssl cli I…
elbowz
  • 557
  • 1
  • 4
  • 19
0
votes
2 answers

How to use openssl to verify without creating files in python?

I am using OpenSSL to perform verification. openssl dgst -sha256 -verify public.pem -signature sign_file origin_file What I need to do is that if I know the content of sign_file and origin_file, how can I do the verify work in python without…
sting_roc
  • 233
  • 2
  • 15