providers/saml: switch to new crypto

This commit is contained in:
Jens Langhammer
2020-03-03 23:35:50 +01:00
parent dc8b89a6b9
commit 80a50f9bdb
7 changed files with 47 additions and 106 deletions

View File

@ -274,9 +274,9 @@ class DescriptorDownloadView(AccessRequiredView):
kwargs={"application": provider.application.slug},
)
)
pubkey = strip_pem_header(provider.signing_cert.replace("\r", "")).replace(
"\n", ""
)
pubkey = strip_pem_header(
provider.singing_kp.certificate_data.replace("\r", "")
).replace("\n", "")
subject_format = provider.processor.subject_format
ctx = {
"entity_id": entity_id,