From 884e75b1f5a843486414ad9eb5645d6a0fd12ce5 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Mon, 2 Jun 2014 13:49:59 +0200 Subject: [PATCH] Removed unused import cert_file, key_file and ca_certs should point to a file with the certificate not the certificate itself. --- src/saml2/entity.py | 3 ++- src/saml2/sigver.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) 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