m2crypto Questions
5
I am working on implementing a web application that utilizes an API. During a response, the API server sends over a link to an X509 certificate (in PEM format, composed of a signing certificate and...
Eustacia asked 8/6, 2015 at 2:3
7
Solved
$sudo pip3 install m2crypto
Collecting m2crypto
Using cached M2Crypto-0.26.0.tar.gz
Requirement already satisfied: typing in /usr/local/lib/python3.5/dist-packages (from m2crypto)
Installing colle...
Kirstiekirstin asked 16/6, 2017 at 20:18
6
I am trying to install M2Crypto on CentOS by compiling from the source.
i am doing a python setup.py build
But I get the following error,
/usr/local/lib/python2.6/distutils/dist.py:266: UserWarn...
Bury asked 7/12, 2010 at 18:26
6
Solved
4
I need to verify that a certificate was signed by my custom CA. Using OpenSSL command-line utilities this is easy to do:
# Custom CA file: ca-cert.pem
# Cert signed by above CA: bob.cert
$ openssl...
Sulfate asked 9/12, 2010 at 20:54
13
Solved
I'm running Ubuntu 9:10 and a package called M2Crypto is installed (version is 0.19.1). I need to download, build and install the latest version of the M2Crypto package (0.20.2).
The 0.19.1 packa...
Wadi asked 3/3, 2011 at 16:40
2
I'm trying to implement the following in Python:
openssl enc -e -aes-256-cbc -base64 -k "Secret Passphrase" -in plaintext.txt -out ciphertext.txt
openssl enc -d -aes-256-cbc -base64 -k "Secret Pas...
2
Solved
I am new to python and still learning it so my question can be little naive. Please bear with it ;)
The problem is client will be sending CSR and I want to sign it with my CA root certificate and ...
Meticulous asked 16/4, 2014 at 8:25
7
Solved
pip install m2crypto
Generates the following output:
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/System/Library/Frameworks/Python....
Misprint asked 8/10, 2015 at 1:58
3
Solved
I'm trying to build and install M2Crypto on Ubuntu 10.04 LTS. I downloaded and untarred M2Crypto-0.20.2.tar, and from the M2Crypto-0.20.2 directory I tried python setup.py build. I got an error bec...
3
Solved
I need to scan through a list of IPs and retrieve the common name from the certificate on that IP (for every IP that allows port 443 connections). I have been able to successfully do this using the...
1
Solved
The input : big multipart signed and encrypted email (~10MB) done with openssl.
Decrypting the file seems to be fast enough.
Getting the decrypted information to verify them is MORE than long. It...
5
Solved
I have created a virtual environment without the system packages with python's virtualenv in Ubuntu and installed m2crypto, but when I execute a shell and I try to import M2Crypto i get the followi...
Galileo asked 11/5, 2012 at 7:35
5
Can someone provide me code to encrypt / decrypt using m2crypto aes256 CBC using Python
1
I have PKCS7 message which is signed. It contains a data and a signing certificate (with the whole chain of trust).
I have a code which uses m2crypto to get a certificate out of it.
bio = BIO.Mem...
Microcurie asked 6/1, 2016 at 3:43
2
Solved
I have a password-protected private key in a .pem file; I want to use it to sign requests to a remote server. I'm able to load the key and enter the passphrase after being prompted for it:
python
...
Mayday asked 16/5, 2012 at 8:54
2
These two codes provide the same signature, which is expected:
code1:
from M2Crypto import RSA, EVP
import base64, hashlib
text = "some text"
pkey = EVP.load_key("mykey.pem") #"mykey.pem" was g...
Kelton asked 14/4, 2011 at 12:16
2
Solved
I am trying to install M2Crypto on a Windows 7 machine using easy_install. However, I get the following error:
SWIG_m2crypto.i(31) : Error: Unable to find 'openssl\opensslv.h'
SWIG_m2crypto.i(4...
Skulk asked 31/1, 2012 at 11:9
4
Solved
I'm trying to install M2Crypto so that I can generate pkey in my web app. My hosting requirements dictate that I must use pip to install any dependencies. Installing m2crypto at the system level is...
Apodal asked 27/3, 2012 at 15:25
1
Solved
Little bit of background:
I'm building a certificate authority using M2Crypto and Django, so please think twice before voting to close this as off topic! :)
My approach is that end-users are ident...
0
I am trying to produce an RSA signature in Haskell that will match the same signature from Python's M2Crypto. I think my issue is the fact that Codec.Crypto.RSA is using the PKCS1 v1.5 algorithm an...
3
Solved
I need to get the digest of a PKCS#7 envelop to manually check it.
Usually when you want to validate the signature of a pkcs#7 envelop you do that:
from M2Crypto import SMIME, X509, BIO
sm_obj =...
2
I tried installing M2Crypto and facing problems. I don't want to force my customers to use such libraries which are difficult to install. So, I thought I would give pyOpenSSL a try. I am able to ge...
Neurasthenia asked 24/9, 2009 at 11:16
2
Solved
I'm attempting to verify the SHA1 signature of a message by downloading a certificate from a website and extracting its public key. There's a few bits of sample code elsewhere on SO (here and here)...
Moxa asked 3/3, 2013 at 15:56
1
Can someone please point out mistakes in this code:
__author__="gaurav"
__date__ ="$15 Feb, 2011 5:10:59 PM$"
import M2Crypto
from base64 import b64encode, b64decode
ENC=1
DEC=0
def AES_bui...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.