diff --git a/ipaserver/plugins/cert.py b/ipaserver/plugins/cert.py index 61dfde5fe..400b1b3ce 100644 --- a/ipaserver/plugins/cert.py +++ b/ipaserver/plugins/cert.py @@ -1827,6 +1827,7 @@ class cert_find(Search, CertMethod): # For the case of CA-less we need to keep # the certificate because getting it again later # would require unnecessary LDAP searches. + cert = cert.to_cryptography() obj['certificate'] = ( base64.b64encode( cert.public_bytes(x509.Encoding.DER))