Ensuring that CSRs are correctly validated under python3 (#565)

This commit is contained in:
kevgliss 2016-12-06 12:25:43 -08:00 committed by GitHub
parent 287c684866
commit 00da52f32e
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ def csr(data):
:return:
"""
try:
x509.load_pem_x509_csr(bytes(data), default_backend())
x509.load_pem_x509_csr(data.encode('utf-8'), default_backend())
except Exception:
raise ValidationError('CSR presented is not valid.')