Modified to work with the refactored crypto backend.
This commit is contained in:
@@ -7,6 +7,7 @@ from saml2.metadata import entities_descriptor
|
||||
from saml2.metadata import sign_entity_descriptor
|
||||
|
||||
from saml2.sigver import SecurityContext
|
||||
from saml2.sigver import get_xmlsec_cryptobackend
|
||||
from saml2.sigver import get_xmlsec_binary
|
||||
from saml2.validate import valid_instance
|
||||
from saml2.config import Config
|
||||
@@ -60,7 +61,10 @@ for filespec in args.config:
|
||||
cnf = Config().load_file(fil, metadata_construction=True)
|
||||
eds.append(entity_descriptor(cnf))
|
||||
|
||||
secc = SecurityContext(xmlsec, args.keyfile, cert_file=args.cert)
|
||||
crypto = get_xmlsec_cryptobackend()
|
||||
secc = SecurityContext(crypto, key_file=args.keyfile,
|
||||
cert_file=args.cert, debug=1)
|
||||
|
||||
if args.id:
|
||||
desc = entities_descriptor(eds, valid_for, args.name, args.id,
|
||||
args.sign, secc)
|
||||
|
||||
Reference in New Issue
Block a user