Commit fa3ffbae authored by olivier R-D's avatar olivier R-D

fix automatic build and crypto dependencies

parent 19fdd66f
......@@ -11,5 +11,6 @@ install:
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install futures ; fi
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install trollius ; fi
- if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install enum34 ; fi
pip install pycrypto
# command to run tests
script: ./run-tests.sh
......@@ -4,7 +4,6 @@ from ssl import DER_cert_to_PEM_cert
import base64
import hashlib
import OpenSSL
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA256
......@@ -85,6 +84,7 @@ def sign_sha1(key, data):
if __name__ == "__main__":
import OpenSSL
# Convert from PEM to DER
pem = open("../examples/server_cert.pem").read()
der = PEM_cert_to_DER_cert(pem)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment