diff --git a/src/saml2/entity.py b/src/saml2/entity.py index 56cc321..3c85d77 100644 --- a/src/saml2/entity.py +++ b/src/saml2/entity.py @@ -127,7 +127,8 @@ class Entity(HTTPBase): if _val.startswith("http"): r = requests.request("GET", _val) if r.status_code == 200: - setattr(self.config, item, r.text) + _, filename = make_temp(r.text, ".pem", False) + setattr(self.config, item, filename) else: raise Exception( "Could not fetch certificate from %s" % _val) diff --git a/src/saml2/sigver.py b/src/saml2/sigver.py index 1924cee..abb1c1b 100644 --- a/src/saml2/sigver.py +++ b/src/saml2/sigver.py @@ -35,7 +35,6 @@ from Crypto.PublicKey import RSA from saml2.cert import OpenSSLWrapper from saml2.extension import pefim from saml2.saml import EncryptedAssertion -from saml2.samlp import Response import xmldsig as ds