Skip to content

Commit

Permalink
Fixed cryptography usage for py27
Browse files Browse the repository at this point in the history
  • Loading branch information
technige committed Jul 15, 2020
1 parent 8ddb524 commit 4136360
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion py2neo/security.py
Expand Up @@ -29,6 +29,7 @@
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import rsa
from six import u


log = getLogger(__name__)
Expand Down Expand Up @@ -64,7 +65,7 @@ def make_self_signed_certificate():
x509.NameAttribute(NameOID.STATE_OR_PROVINCE_NAME, u"Kent"),
x509.NameAttribute(NameOID.LOCALITY_NAME, u"Canterbury"),
x509.NameAttribute(NameOID.ORGANIZATION_NAME, u"Example"),
x509.NameAttribute(NameOID.COMMON_NAME, gethostname()),
x509.NameAttribute(NameOID.COMMON_NAME, u(gethostname())),
])
cert = x509.CertificateBuilder().subject_name(
subject
Expand Down
13 changes: 12 additions & 1 deletion requirements.txt
@@ -1,3 +1,14 @@
--index-url https://pypi.python.org/simple/

-e .
certifi
cryptography
docker
monotonic
neotime~=1.7.4
packaging
pansi>=2020.7.3
prompt_toolkit~=2.0.7
pygments>=2.0.0
pytz
six>=1.15.0
urllib3

0 comments on commit 4136360

Please sign in to comment.