From 62e85c5fbfc9e04145a0464591009b4a7ec51b5c Mon Sep 17 00:00:00 2001 From: Ian Young Date: Fri, 19 Apr 2013 09:41:15 +0000 Subject: [PATCH] Convert test and export aggregates to SHA-256. Make digest explicit in all signing operations rather than defaulting, for clarity. Switch over to requiring the java.security file to be *not* modified, instead referencing the Sun PKCS11 provider and the appropriate configuration file directly. Add a property defaulting system to allow things like the PKCS11 configuration file location property to be platform-specific, or specified by a non-source-controlled local override file (build.properties). This needs a little work to handle Linux for the Feitian card. --- build.xml | 115 ++++++++++++++++++--------------------------- default.properties | 7 +++ macosx.properties | 7 +++ windows.properties | 12 +++++ 4 files changed, 72 insertions(+), 69 deletions(-) create mode 100644 default.properties create mode 100644 macosx.properties create mode 100644 windows.properties diff --git a/build.xml b/build.xml index 4cde0606..a1ba0b27 100644 --- a/build.xml +++ b/build.xml @@ -11,7 +11,39 @@ --> - + + + + + + + + + + + + + + - - @@ -100,28 +127,6 @@ - - - - - - - - - - @@ -545,7 +550,7 @@ - + @@ -562,38 +567,15 @@ - - - - - - - - - - @@ -725,7 +707,7 @@ - + @@ -736,24 +718,19 @@ --> Signing UK metadata. - - + Signing UK WAYF metadata. - - + Signing UK test metadata. - - + Signing UK export metadata. - - + Signing UK fallback metadata. - - + Generated signed UK metadata. diff --git a/default.properties b/default.properties new file mode 100644 index 00000000..1c10546b --- /dev/null +++ b/default.properties @@ -0,0 +1,7 @@ +# +# default.properties +# +# Default properties for all builds. Properties defined +# here may be overridden in platform-specific properties files, +# or in a machine-specific build.properties file. +# diff --git a/macosx.properties b/macosx.properties new file mode 100644 index 00000000..1b5744a2 --- /dev/null +++ b/macosx.properties @@ -0,0 +1,7 @@ +# +# macosx.properties +# +# Properties for Mac OS X builds. Properties defined here override +# those defined in default.properties, but may be overridden by +# properties defined in a machine-specific build.properties file. +# diff --git a/windows.properties b/windows.properties new file mode 100644 index 00000000..2a29a5b6 --- /dev/null +++ b/windows.properties @@ -0,0 +1,12 @@ +# +# windows.properties +# +# Properties for Windows builds. Properties defined here override +# those defined in default.properties, but may be overridden by +# properties defined in a machine-specific build.properties file. +# + +# +# Location of the PKCS#11 configuration file for an ACOS5 card. +# +pkcs11.config = C\:\\pkcs11\\sdk18\\acs.cfg