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:
@@ -127,7 +127,8 @@ class Entity(HTTPBase):
|
|||||||
if _val.startswith("http"):
|
if _val.startswith("http"):
|
||||||
r = requests.request("GET", _val)
|
r = requests.request("GET", _val)
|
||||||
if r.status_code == 200:
|
if r.status_code == 200:
|
||||||
setattr(self.config, item, r.text)
|
_, filename = make_temp(r.text, ".pem", False)
|
||||||
|
setattr(self.config, item, filename)
|
||||||
else:
|
else:
|
||||||
raise Exception(
|
raise Exception(
|
||||||
"Could not fetch certificate from %s" % _val)
|
"Could not fetch certificate from %s" % _val)
|
||||||
|
@@ -35,7 +35,6 @@ from Crypto.PublicKey import RSA
|
|||||||
from saml2.cert import OpenSSLWrapper
|
from saml2.cert import OpenSSLWrapper
|
||||||
from saml2.extension import pefim
|
from saml2.extension import pefim
|
||||||
from saml2.saml import EncryptedAssertion
|
from saml2.saml import EncryptedAssertion
|
||||||
from saml2.samlp import Response
|
|
||||||
|
|
||||||
import xmldsig as ds
|
import xmldsig as ds
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user