summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2012-11-13 17:59:47 +0100
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2012-11-13 17:59:47 +0100
commit2e1f7446d9ae779c19a65cf4c64ad4f944cf7418 (patch)
tree16967cd28d883ec019130fc81045f99fe40476c8
parenta68479faf73d951f0e609ccbd2010ff8fcda10d5 (diff)
downloadpdf-over-2e1f7446d9ae779c19a65cf4c64ad4f944cf7418.tar.gz
pdf-over-2e1f7446d9ae779c19a65cf4c64ad4f944cf7418.tar.bz2
pdf-over-2e1f7446d9ae779c19a65cf4c64ad4f944cf7418.zip
Add pkcs11-sign profile to sign using token
-rw-r--r--trunk/pdf-over-gui/pom.xml57
-rwxr-xr-xtrunk/publish.sh4
2 files changed, 53 insertions, 8 deletions
diff --git a/trunk/pdf-over-gui/pom.xml b/trunk/pdf-over-gui/pom.xml
index 3fc19d46..40d911b7 100644
--- a/trunk/pdf-over-gui/pom.xml
+++ b/trunk/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>
diff --git a/trunk/publish.sh b/trunk/publish.sh
index 7b04941f..6576e8f7 100755
--- a/trunk/publish.sh
+++ b/trunk/publish.sh
@@ -24,6 +24,8 @@ TNORMAL="\033[0;39m"
COLS=$(tput cols)
+MVN_PARAMS="$@"
+
function begin_phase {
MSG=$@
printf "$MSG"
@@ -52,7 +54,7 @@ for (( i = 0 ; i < ${#names[@]} ; i++ )) do
NAME=${names[$i]}
INSTALLER=setup_pdfover_$NAME.jar
begin_phase "Building package [$PROFILE] as $INSTALLER..."
- mvn install -P$PROFILE > $LOG_DIR/build_$NAME.log 2>&1
+ mvn install -P$PROFILE $MVN_PARAMS > $LOG_DIR/build_$NAME.log 2>&1
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
end_phase "OK"