mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Split x509.load_certificate() into PEM/DER functions
Splitting the load_certificate() function into two separate helps us word the requirements for the input explicitly. It also makes our backend similar to the one of python-cryptography so eventually we can swap python-cryptography for IPA x509 module. https://pagure.io/freeipa/issue/4985 Reviewed-By: Fraser Tweedale <ftweedal@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
committed by
Pavel Vomacka
parent
284658e08e
commit
4375ef860f
@@ -683,8 +683,8 @@ class ModVaultData(Local):
|
||||
|
||||
# retrieve transport certificate (cached by vaultconfig_show)
|
||||
response = self.api.Command.vaultconfig_show()
|
||||
transport_cert = x509.load_certificate(
|
||||
response['result']['transport_cert'], x509.DER)
|
||||
transport_cert = x509.load_der_x509_certificate(
|
||||
response['result']['transport_cert'])
|
||||
# call with the retrieved transport certificate
|
||||
return self._do_internal(algo, transport_cert, True,
|
||||
*args, **options)
|
||||
|
||||
Reference in New Issue
Block a user