crypto: fix being unable to save with private key

This commit is contained in:
Jens Langhammer 2020-05-24 01:17:38 +02:00
parent b0ddc6a8c0
commit 2a78d2d0a0

View file

@ -34,7 +34,6 @@ class CertificateKeyPairForm(forms.ModelForm):
password=None,
backend=default_backend(),
)
load_pem_x509_certificate(key_data.encode("utf-8"), default_backend())
except ValueError:
raise forms.ValidationError("Unable to load private key.")
return key_data