Do NOT collect signature cert from the authn request and use for encryption.
This commit is contained in:
@@ -1070,17 +1070,17 @@ def encrypt_cert_from_item(item):
|
|||||||
[pefim, ds])
|
[pefim, ds])
|
||||||
if len(_elem) == 1:
|
if len(_elem) == 1:
|
||||||
_encrypt_cert = _elem[0].x509_data[0].x509_certificate.text
|
_encrypt_cert = _elem[0].x509_data[0].x509_certificate.text
|
||||||
else:
|
#else:
|
||||||
certs = cert_from_instance(item)
|
# certs = cert_from_instance(item)
|
||||||
if len(certs) > 0:
|
# if len(certs) > 0:
|
||||||
_encrypt_cert = certs[0]
|
# _encrypt_cert = certs[0]
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if _encrypt_cert is None:
|
#if _encrypt_cert is None:
|
||||||
certs = cert_from_instance(item)
|
# certs = cert_from_instance(item)
|
||||||
if len(certs) > 0:
|
# if len(certs) > 0:
|
||||||
_encrypt_cert = certs[0]
|
# _encrypt_cert = certs[0]
|
||||||
|
|
||||||
if _encrypt_cert is not None:
|
if _encrypt_cert is not None:
|
||||||
if _encrypt_cert.find("-----BEGIN CERTIFICATE-----\n") == -1:
|
if _encrypt_cert.find("-----BEGIN CERTIFICATE-----\n") == -1:
|
||||||
|
Reference in New Issue
Block a user