Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Add some ant build targets to test the signing/verifying system works
Browse files Browse the repository at this point in the history
To be used by a Jenkins job to test the connection to the HSM
  • Loading branch information
Rhys Smith committed Nov 3, 2016
1 parent c6242cc commit 575b2f4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1785,6 +1785,17 @@

</target>

<!--
Tests signing the unsigned main aggregate
-->
<target name="samlmd.aggregates.sign.test" depends="get.sign.uk.keyPassword">
<echo>Testing signing the unsigned main aggregate.</echo>

<echo>Test signing UKfed prod metadata.</echo>
<SIGN.uk i="${output.dir}/${mdaggr.prod.unsigned}" o="${output.dir}/${mdaggr.prod.signed}" digest="SHA-256"/>

</target>

<!--
Verify the signed aggregates.
-->
Expand Down Expand Up @@ -1813,6 +1824,16 @@
<echo>Verification completed.</echo>
</target>

<!--
Tests verifying the signed main aggregate.
-->
<target name="samlmd.aggregates.verify.test">
<echo>Testing verifying the signed main aggregate.</echo>
<XMLSECTOOL.VFY.uk i="${output.dir}/${mdaggr.prod.signed}"/>

<echo>Test verification completed.</echo>
</target>

<!--
Break the production aggregate into per-entity metadata, sign the
individual documents and write them as individual files into a
Expand Down

0 comments on commit 575b2f4

Please sign in to comment.