diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-05-30 12:31:32 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2013-05-30 12:31:32 +0200 |
commit | ace130e552d66588814d93b6a7687f39632051f7 (patch) | |
tree | 4e752277224f78912ba628fcd781f2b72ce8626f /tools | |
parent | ef9d9fe6b53deeb6cdffc9d1bbb932b630220e09 (diff) | |
download | pysaml2-ace130e552d66588814d93b6a7687f39632051f7.tar.gz |
Added some more log info
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/mdexport.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/mdexport.py b/tools/mdexport.py index 4f5213dd..7df75d3e 100755 --- a/tools/mdexport.py +++ b/tools/mdexport.py @@ -1,5 +1,6 @@ #!/usr/bin/env python import sys +from saml2.sigver import _get_xmlsec_cryptobackend, SecurityContext from saml2.httpbase import HTTPBase from saml2 import saml @@ -59,9 +60,10 @@ if args.type == "local": elif args.type == "external": ATTRCONV = ac_factory(args.attrsmap) httpc = HTTPBase() + crypto = _get_xmlsec_cryptobackend("/opt/local/bin/xmlsec1") + sc = SecurityContext(crypto) metad = MetaDataExtern(ONTS.values(), ATTRCONV, args.url, - "/opt/local/bin/xmlsec1", - args.cert, httpc) + sc, cert=args.cert, http=httpc) if metad: metad.load() |