From 2a78d2d0a01e59e720cb799ff7965b5f82d432e1 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 24 May 2020 01:17:38 +0200 Subject: [PATCH] crypto: fix being unable to save with private key --- passbook/crypto/forms.py | 1 - 1 file changed, 1 deletion(-) diff --git a/passbook/crypto/forms.py b/passbook/crypto/forms.py index babf25919..79d5f7100 100644 --- a/passbook/crypto/forms.py +++ b/passbook/crypto/forms.py @@ -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