crypto: fix linting
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
25817cae6b
commit
2aa7266688
|
@ -57,7 +57,9 @@ class CertificateKeyPair(CreatedUpdatedModel):
|
||||||
if not self._private_key and self._private_key != "":
|
if not self._private_key and self._private_key != "":
|
||||||
try:
|
try:
|
||||||
self._private_key = load_pem_private_key(
|
self._private_key = load_pem_private_key(
|
||||||
str.encode("\n".join([x.strip() for x in self.key_data.split("\n")])),
|
str.encode(
|
||||||
|
"\n".join([x.strip() for x in self.key_data.split("\n")])
|
||||||
|
),
|
||||||
password=None,
|
password=None,
|
||||||
backend=default_backend(),
|
backend=default_backend(),
|
||||||
)
|
)
|
||||||
|
|
Reference in New Issue