Skip to content

Commit

Permalink
Validate signed metadata against the 2012 signing certificate as well…
Browse files Browse the repository at this point in the history
… as against the 2010 one.
  • Loading branch information
iay committed Oct 11, 2012
1 parent 490c29d commit 9e82e61
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@
<!--
Verification keystore.
-->
<property name="keystore.uk.vfy.loc" value="${build.dir}/ukfederation-2010.jks"/>
<property name="keystore.uk.vfy.alias" value="ukfederation"/>

<property name="known.hosts" value="${build.dir}/known_hosts"/>
Expand Down Expand Up @@ -499,7 +498,12 @@
<macrodef name="MDT.VFY.uk">
<attribute name="i"/>
<sequential>
<MDT i="@{i}" o="${null.device}" keystore="${keystore.uk.vfy.loc}" alias="${keystore.uk.vfy.alias}"/>
<MDT i="@{i}" o="${null.device}"
keystore="${build.dir}/ukfederation-2010.jks"
alias="${keystore.uk.vfy.alias}"/>
<MDT i="@{i}" o="${null.device}"
keystore="${build.dir}/ukfederation-2012.jks"
alias="${keystore.uk.vfy.alias}"/>
</sequential>
</macrodef>

Expand Down Expand Up @@ -582,6 +586,16 @@
-->
</args>
</XMLSECTOOL>
<XMLSECTOOL i="@{i}">
<args>
<arg value="--verifySignature"/>
<arg value="--certificate"/>
<arg value="${build.dir}/ukfederation-2012.pem"/>
<!--
<arg value="- -quiet"/>
-->
</args>
</XMLSECTOOL>
</sequential>
</macrodef>

Expand Down

0 comments on commit 9e82e61

Please sign in to comment.