Skip to content

Commit 884e75b

Browse files
author
Roland Hedberg
committed
Removed unused import
cert_file, key_file and ca_certs should point to a file with the certificate not the certificate itself.
1 parent f68b65c commit 884e75b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/saml2/entity.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ def __init__(self, entity_type, config=None, config_file="",
127127
if _val.startswith("http"):
128128
r = requests.request("GET", _val)
129129
if r.status_code == 200:
130-
setattr(self.config, item, r.text)
130+
_, filename = make_temp(r.text, ".pem", False)
131+
setattr(self.config, item, filename)
131132
else:
132133
raise Exception(
133134
"Could not fetch certificate from %s" % _val)

src/saml2/sigver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
from saml2.cert import OpenSSLWrapper
3636
from saml2.extension import pefim
3737
from saml2.saml import EncryptedAssertion
38-
from saml2.samlp import Response
3938

4039
import xmldsig as ds
4140

0 commit comments

Comments
 (0)