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

Commit

Permalink
Make the signing keystore provider an optional property.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Aug 1, 2016
1 parent 22b1356 commit 7ada1bf
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -654,13 +654,16 @@
<arg value="@{digest}"/>

<!--
If we have a PKCS11 configuration specified, include it.
If we have a PKCS#11 configuration specified, include it.
-->
<arg if:set="keystore.pkcs11.config" value="--pkcs11Config"/>
<arg if:set="keystore.pkcs11.config" value="${keystore.pkcs11.config}"/>

<arg value="--keystoreProvider"/>
<arg value="sun.security.pkcs11.SunPKCS11"/>
<!--
If we have a non-default keystore provider specified, include it.
-->
<arg if:set="keystore.uk.sign.provider" value="--keystoreProvider"/>
<arg if:set="keystore.uk.sign.provider" value="${keystore.uk.sign.provider}"/>

<arg value="--key"/>
<arg value="${keystore.uk.sign.alias}"/>
Expand Down
5 changes: 5 additions & 0 deletions preprod.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# Properties defined for the env=preprod deployment environment.
#

#
# Use the PKCS#11 provider for signatures.
#
keystore.uk.sign.provider = sun.security.pkcs11.SunPKCS11

#
# Location of the PKCS#11 configuration file for the Thales HSM.
#
Expand Down
5 changes: 5 additions & 0 deletions prod-old.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
# to be used again in anger.
#

#
# Use the PKCS#11 provider for signatures.
#
keystore.uk.sign.provider = sun.security.pkcs11.SunPKCS11

#
# Location of the PKCS#11 configuration file for an ACOS5 card.
#
Expand Down
5 changes: 5 additions & 0 deletions prod.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# Properties defined for the env=prod deployment environment.
#

#
# Use the PKCS#11 provider for signatures.
#
keystore.uk.sign.provider = sun.security.pkcs11.SunPKCS11

#
# Location of the PKCS#11 configuration file for the Thales HSM.
#
Expand Down

0 comments on commit 7ada1bf

Please sign in to comment.