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 can I know the SHA type in OpenSSL ChaCha cipher

I want to check OpenSSL 1.1.0g against an application ciphersuite lists. The application I have has ciphersuites as follows: ecdhe-ecdsa-chacha20-poly1305-sha256 ecdhe-rsa-chacha20-poly1305-sha256 By checking Openssl TLS 1.2 ciphers using the…
user9371654
  • 2,160
  • 16
  • 45
  • 78
0
votes
1 answer

In Python, how do I loop through this list and call every item to the same function?

Hello I am trying to build a script that will list sites' SSL cert expiration date. The first function of the code def sslExpiresDate works great on its own. It's when I add the second function def all_sites_list where my code has broken. I don't…
RaptorPete
  • 139
  • 12
0
votes
1 answer

pip not installing any package with warnings " InsecurePlatformWarning, SNIMissingWarning"

Python version: 2.7.6 Pip version: 9.0.3 C:\Python27\Scripts>pip install pyOpenSSL Collecting pyOpenSSL below is the error while installing any package c:\python27\lib\site-packages\pip_vendor\urllib3\util\ssl_.py:339: SNIMissingWarning: An HTTPS…
Radha
  • 1
  • 1
  • 3
0
votes
1 answer

Getting file errors after creating python script titled ssl.py

Traceback (most recent call last): File "ssl-common.py", line 14, in s = ctx.wrap_socket(s, server_hostname=dst[0]) File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 363, in…
Me Myself
  • 129
  • 2
  • 14
0
votes
1 answer

python version of openssl passwd

The openssl passwd command computes the hash of a password typed at run-time or the hash of each password in a list. The password list is taken from the named file for option -in file, from stdin for option -stdin, and from the command line…
activedecay
  • 10,129
  • 5
  • 47
  • 71
0
votes
1 answer

Error initializing ctypes in pybuilder

A couple of days ago I cloned a git repository and tried to make a build out of that code with PyBuilder; however, I have not been able to do so. Every time I run pyb -X -E jenkins-zipfile-release in Bash I get the following error: BUILD FAILED -…
Nerdrigo
  • 308
  • 1
  • 5
  • 14
0
votes
0 answers

undefined symbol: MD5_Final > Error on Ubuntu with Anaconda while a compiling a python extension

This is my hasher.c , source of python/c extension for my program #include #include #include static PyObject* gethash(PyObject* self , PyObject* args) { // char inputfile; char *filename; if…
polu_
  • 342
  • 7
  • 17
0
votes
1 answer

How to create a self signed certificate use Python and Flask

My Applications are running as Docker containers. User interface using angular js Middleware ( running in a python flask server on some port) Database Now I want to create SSL certificate in UI and Python flask server using OpenSSL. I have used…
Naveen
  • 1
  • 2
0
votes
0 answers

Openssl and pyopenssl return negative SN. Convert to positive?

I have problem when I get serial number from certificate over openssl and over pyopenssl. I get at some of certificates negative number but Windows gui or Unity GUI in ubuntu return positive serial number. How can I convert negative serial number to…
spirit123
  • 41
  • 1
  • 6
0
votes
0 answers

SSL handshake error twisted

So I have a twisted application where I create the SSL service like this: myfactory=MyFactory(host, port) service=SSLServer(port,myfactory, ssl.DefaultOpenSSLContextFactory(MY_SERVICE_SSL_KEY, MY_SERVICE_SSL_CERT)) Here MyFactory is just my custom…
Marc
  • 3,386
  • 8
  • 44
  • 68
0
votes
1 answer

Python Requests "No Client Certificate present in Http Request"

Trying to make a post request and I'm receiving a 403 Response with the message saying "No Client Certificate present in Http Request". I tried making the request with verify=False but I still run into the same issue. This is the get request I'm…
logan_b
  • 43
  • 1
  • 6
0
votes
2 answers

How to decrypt RSA encrypted file (via PHP and OpenSSL) with pyopenssl?

Simple n00b question: I am trying to replicate the behavior of the openssl_private_decrypt function in PHP to decrypt a file that a vendor is sending me which was encrypted via the openssl_public_encrypt function. I am using python 3.4 and thus the…
daveslab
  • 10,000
  • 21
  • 60
  • 86
0
votes
0 answers

Ubuntu pyopenssl crypto.load_certificate raise illegal padding error while it works fine in MacOSX

Recently, I have met an issue when using pyOpenSSL to load a certificate in Ubuntu 14.04. It raised an exception as below [('asn1 encoding routines', 'c2i_ibuf', 'illegal padding'), ('asn1 encoding routines', 'asn1_template_noexp_d2i', 'nested asn1…
Ryan Chou
  • 1,086
  • 11
  • 21
0
votes
0 answers

TLS1.2 not supported with my python/django site

I'm hoping someone might be able to help me. I have a client that has a website running Python 2.7.5+ (according to python -V). It's an ecommerce site that also uses the eWay payment gateway. They recently made some changes to only support TLS1.2…
doubleplusgood
  • 2,486
  • 11
  • 45
  • 64
0
votes
0 answers

Errno -2 Name or service not known -- openSSL Python

I am using Python, Selenium, Tweepy, and openSSL to look at links gathered from tweet data. Essentially what I have my code do is check if the tweet has a link, check if it is http/https, and if it is https, it will check if the certificate has…