Ensuring that CSRs are correctly validated under python3 (#565)
This commit is contained in:
parent
287c684866
commit
00da52f32e
|
@ -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.')
|
||||
|
||||
|
|
Loading…
Reference in New Issue