mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
py3: fix vault public key decoding
Part of: https://pagure.io/freeipa/issue/7033 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
committed by
Pavel Vomacka
parent
cac7357ebd
commit
9cead4da2e
@@ -890,7 +890,7 @@ class vault_archive(ModVaultData):
|
|||||||
|
|
||||||
elif vault_type == u'asymmetric':
|
elif vault_type == u'asymmetric':
|
||||||
|
|
||||||
public_key = vault['ipavaultpublickey'][0].encode('utf-8')
|
public_key = vault['ipavaultpublickey'][0]
|
||||||
|
|
||||||
# generate encryption key
|
# generate encryption key
|
||||||
encryption_key = base64.b64encode(os.urandom(32))
|
encryption_key = base64.b64encode(os.urandom(32))
|
||||||
|
|||||||
Reference in New Issue
Block a user