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

extract signature from digital certificate

I get lot of pdfs in my system. I need to check if all of these files are:- digitally signed their integrity maintained(by comparing the hash of file content with the message digest embedded in /Contents.. I am using python to do this. Till now I…
Barun Sharma
  • 1,452
  • 2
  • 15
  • 20
0
votes
1 answer

Unexpected EOF for https with python requests under nginx

After installing pyopenssl, ndg-httpsclient and pyasn1 to support SSL with SNI. I get the following error, for certain https urls: (-1, 'Unexpected EOF') only when running under nginx tried: removing the gzip from nginx.
yonatan
  • 595
  • 1
  • 4
  • 18
0
votes
1 answer

OpenSSL does not match Python hashlib

I am new to using the OpenSSL library and I cannot get its output to match the output from python's crypto libraries. Below is an example. Python Code: import hmac secret = "asdf1234" string = '{"request"}' hmac.new(secret, string,…
Thomas
  • 347
  • 3
  • 19
0
votes
1 answer

cx_freeze and openssl error after compilation

I have a PySide program that uses pyOpenSSL to do a certificate check, I compile it with Cx_Freeze and whenever I try to open it after compiling it I get the following error: I'm using pyOpenSSL 0.14, Cx_Freeze 4.3.3 and PySide 1.2.2. Why am I…
Leandro Poblet
  • 1,424
  • 1
  • 14
  • 19
0
votes
1 answer

no module named OpenSSL

I try to get working SET on my iPhone for a week with no success. iPhone5S IOS 7.0.4 I try to do a credential harvester attack (site clone) but I always have the error message : No module named OpenSSL OpenSSL is installed on my iPhone (with cydia).…
blackndoor
  • 55
  • 7
0
votes
1 answer

Why can't I use two DES keys that differ only in parity with OpenSSL?

When I perform following action in terminal I get different decryption text compared to message showing that these keys map to unique cipher openssl enc -des-ecb -in text.in -out cipher.txt -k '96508092' openssl enc -d -des-ecb -in cipher.txt -out…
ceasif
  • 345
  • 2
  • 14
0
votes
1 answer

Simple HTTP Server SSL record_too_long error

I am trying to run a few Python CGI scripts using CGIHTTPServer. This works fine, but now I'd like to run using SSL on the Web listener. I started with the solution at Activestate code recipes and changed SimpleHTTPRequestHandler to…
mpez0
  • 2,815
  • 17
  • 12
0
votes
1 answer

Extract public key from PKey in pyOpenSSL

I'm using pyOpenSSL, and when generating a request. I've basically been doing import OpenSSL from OpenSSL import crypto key = crypto.PKey() key.generate(crypto.TYPE_RSA, 1024) req = crypto.X509Req() req.get_subject().CN =…
Gargob
  • 251
  • 4
  • 14
0
votes
1 answer

get validTo date from x509 certificate using openssl-php

Need to get validTo (expiry) date from x509 certificate and validate with current date. Am using openssl_x509_parse($crtdata) to parse the certificate, any thought on how to get the validTo date from the resulting array. Thanks.
User
  • 135
  • 2
  • 4
  • 13
0
votes
1 answer

installing pyopenssl on ios

when i type: easy_install pyopensll the results are: davie:~ root# easy_install pyopenssl Searching for pyopenssl Reading http://pypi.python.org/simple/pyopenssl/ Reading http://pyopenssl.sourceforge.net/ Reading http://launchpad.net/pyopenssl Best…
BigRed
  • 79
  • 10
-1
votes
1 answer

OpenSSL.crypto.Error when using crypto.sign

I'm trying to sign data with the OpenSSL crypto library. I'm working local but since I will be deploying to Cloud functions, I'm testing with my key located in .env import base64 from OpenSSL import crypto, SSL def encrypt_metadata(data): …
Alexander Thomsen
  • 459
  • 1
  • 4
  • 16
-1
votes
1 answer

Handling error for Getting a socket.gaierror: [Errno 11001] getaddrinfo failed using pyopenssl in Python

Summary: I will try to explain in my first pass but if I am missing some pertinent detail let me know and I will follow up on it. I am ingesting a list of servers from a text file and using pyopenssl to resolve, connect,and retrieve the SSL…
kprober
  • 15
  • 1
  • 5
-1
votes
1 answer

How to make file CRL and revoke certificate using pyOpenSSL?

I have a Python script that looks for all x509 self-signed certificates in a directory, verifies them and writes information about them into the table (valid date, expiration date, subject, issuer). Is there any way to create a list of revoked .crl…
Mark
  • 43
  • 8
-1
votes
1 answer

Cannot use most python apps after updating to Ubuntu 18.04

After updating to Ubuntu 18.04 LTS I can no longer use most Python apps including pip (to install or uninstall). I get the following error in command-line: Traceback (most recent call last): File "/usr/local/bin/pip", line 11, in
-1
votes
1 answer

PHP OpenSSL Encrypt vs Command Line Encypt

I've been having some issues with the builtin methods for PHP OpenSSL. I'm attempting to narrow down the issue by trying different methods. I'm trying the following: $input = "this is a test string"; $opensslCommand = "echo \"{$input}\" | openssl…
Tyler Sebastian
  • 9,067
  • 6
  • 39
  • 62
1 2 3
31
32