summaryrefslogtreecommitdiff
path: root/pdf-over-gui
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:24:21 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:24:21 +0000
commite790760a6ea3409fca0deefc9d2d338be52183d6 (patch)
tree54937845ea15ee95d75eddc16e4e873ecc826f27 /pdf-over-gui
parenta58079ea355e29c7daf65a0b7a31fd1e698186e7 (diff)
downloadmocca-e790760a6ea3409fca0deefc9d2d338be52183d6.tar.gz
mocca-e790760a6ea3409fca0deefc9d2d338be52183d6.tar.bz2
mocca-e790760a6ea3409fca0deefc9d2d338be52183d6.zip
Add pkcs11-sign profile to sign using token
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@303 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui')
-rw-r--r--pdf-over-gui/pom.xml57
1 files changed, 50 insertions, 7 deletions
diff --git a/pdf-over-gui/pom.xml b/pdf-over-gui/pom.xml
index 3fc19d46..40d911b7 100644
--- a/pdf-over-gui/pom.xml
+++ b/pdf-over-gui/pom.xml
@@ -138,16 +138,10 @@
</executions>
<configuration>
<archiveDirectory>target</archiveDirectory>
- <excludes>
- <exclude>**/S*.jar</exclude>
- </excludes>
<includes>
<include>*.jar</include>
</includes>
- <keystore>src/main/resources/keystore.jks</keystore>
- <alias>pdfover_test</alias>
- <storepass>123456</storepass>
- <keypass>123456</keypass>
+ <verify>true</verify>
</configuration>
</plugin>
<plugin>
@@ -324,6 +318,55 @@
<target.name>mac</target.name>
</properties>
</profile>
+ <profile>
+ <id>dummy-sign</id>
+ <!-- Standard profile - sign using a dummy cert -->
+ <activation>
+ <property>
+ <!-- Simple hack to deactivate this profile when using pkcs11-sign -->
+ <name>!pkcs11-pass</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jarsigner-plugin</artifactId>
+ <version>1.2</version>
+ <configuration>
+ <keystore>src/main/resources/keystore.jks</keystore>
+ <alias>pdfover_test</alias>
+ <storepass>123456</storepass>
+ <keypass>123456</keypass>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>pkcs11-sign</id>
+ <!-- Activate this profile to sign the package using the secure token -->
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jarsigner-plugin</artifactId>
+ <version>1.2</version>
+ <configuration>
+ <keystore>NONE</keystore>
+ <storetype>PKCS11</storetype>
+ <providerClass>iaik.pkcs.pkcs11.provider.IAIKPkcs11</providerClass>
+ <alias>a-sit-2</alias>
+ <storepass>${pkcs11-pass}</storepass>
+ <keystoreConfig>
+ <delete>false</delete>
+ <gen>false</gen>
+ </keystoreConfig>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<repositories>