summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NewMakefile3
-rwxr-xr-xscripts/aggregate.sh15
-rw-r--r--swamid-externals-1.0/metadata.lst1
3 files changed, 15 insertions, 4 deletions
diff --git a/NewMakefile b/NewMakefile
index b3c362f3..ddefdec4 100644
--- a/NewMakefile
+++ b/NewMakefile
@@ -27,6 +27,9 @@ swamid-compat: urn-mace-swami.se-swamid-test-1.0-metadata.mxml
swamid-externals:
@scripts/aggregate.sh swamid-externals-1.0
+swamid-interfederations:
+ @scripts/aggregate.sh swamid-interfederations-1.0
+
swamid:
@saml-md-tool swamid-1.0 update --key=$(KEY) --cert=$(CERT) --pwd=$(PASS)
@test -s swamid-1.0.xml && cp swamid-1.0.xml $(DEST)
diff --git a/scripts/aggregate.sh b/scripts/aggregate.sh
index 7565e48a..92eb3b5c 100755
--- a/scripts/aggregate.sh
+++ b/scripts/aggregate.sh
@@ -1,7 +1,16 @@
#!/bin/sh
DIR=`pwd`
+ODIR=$1
-$DIR/scripts/pull-and-verify.sh 'http://spaces.internet2.edu/Shibboleth.sso/Metadata' $1 $DIR/certs/spaces.internet2.edu.crt
-$DIR/scripts/pull-and-verify.sh 'https://kalmar2.org/simplesaml/module.php/aggregator/?id=kalmarcentral2&set=saml2&exclude=sweden&mimetype=application/xml' $1 $DIR/certs/kalmar-signer.crt
-$DIR/scripts/pull-and-verify.sh 'http://discovery.shibboleth.net/shibboleth.net-metadata.xml' $1
+(while read url cert; do
+ cfile=""
+ if [ "x$cert" != "x" ]; then
+ cfile=$DIR/certs/$cert
+ fi
+ $DIR/scripts/pull-and-verify.sh $url $ODIR $cfile
+done) < $ODIR/metadata.lst
+
+#$DIR/scripts/pull-and-verify.sh 'http://spaces.internet2.edu/Shibboleth.sso/Metadata' $1 $DIR/certs/spaces.internet2.edu.crt
+#$DIR/scripts/pull-and-verify.sh 'https://kalmar2.org/simplesaml/module.php/aggregator/?id=kalmarcentral2&set=saml2&exclude=sweden&mimetype=application/xml' $1 $DIR/certs/kalmar-signer.crt
+#$DIR/scripts/pull-and-verify.sh 'http://discovery.shibboleth.net/shibboleth.net-metadata.xml' $1
diff --git a/swamid-externals-1.0/metadata.lst b/swamid-externals-1.0/metadata.lst
index 0462f139..96c77b4b 100644
--- a/swamid-externals-1.0/metadata.lst
+++ b/swamid-externals-1.0/metadata.lst
@@ -1,3 +1,2 @@
http://spaces.internet2.edu/Shibboleth.sso/Metadata spaces.internet2.edu.crt
-https://kalmar2.org/simplesaml/module.php/aggregator/?id=kalmarcentral2&set=saml2&exclude=sweden&mimetype=application/xml kalmar-signer.crt
http://discovery.shibboleth.net/shibboleth.net-metadata.xml