diff --git a/build.xml b/build.xml index 46e8c88a..47df1b8f 100644 --- a/build.xml +++ b/build.xml @@ -407,6 +407,17 @@ + + + Extracting TLS locations + + + + + diff --git a/build/extract_locs.pl b/build/extract_locs.pl new file mode 100755 index 00000000..bd2a12f2 --- /dev/null +++ b/build/extract_locs.pl @@ -0,0 +1,18 @@ +#!/usr/bin/perl -w + +open(XML,"java -cp ../xalan-j_2_6_0/bin/xalan.jar org.apache.xalan.xslt.Process -IN ../xml/ukfederation-metadata-unsigned.xml -XSL extract_locs.xsl|") || die "could not open input file"; +while () { + chop; + if (/^https:\/\/([^\/:]+(:\d+)?)(\/|$)/) { + my $location = $1; + $location .= ":443" unless defined $2; + $locations{$location} = 1; + } +} +close XML; + +foreach $loc (sort keys %locations) { + if ($loc =~ /([^:]+):(\d+)/) { + print "$1 $2\n"; + } +} diff --git a/build/extract_locs.xsl b/build/extract_locs.xsl new file mode 100644 index 00000000..e1b658df --- /dev/null +++ b/build/extract_locs.xsl @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +