Removed unused import

cert_file, key_file and ca_certs should point to a file with the certificate not the certificate itself.
This commit is contained in:
Roland Hedberg
2014-06-02 13:49:59 +02:00
parent f68b65cc7f
commit 884e75b1f5
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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