Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Signing RCP executable

Two questions regarding signing an RCP executable:

1) I have 3 separate product files each generating an RCP exe in my pom.  I need to have each exe signed.  
      What is the best way to accomplish this with the pom excerpts below?
2) When signing jars, I have encrypted the cert password using mvn:encrypt-password.  This doesn't work for arguments to exec:exec.  
     What is the best way to pass in the cert password?

Thanks for thinking of my question!
Tim

pom.xml excerpt

<plugin>
<groupId>${tycho-groupid}</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
</execution>
</executions>
<configuration>
<products>
<product>
<id>com.vogelware.acmotor</id>
<attachId>product1</attachId>
</product>
<product>
<id>com.vogelware.motordb</id>
<attachId>product2</attachId>
</product>
<product>
<id>com.vogelware.datamanager</id>
<attachId>product3</attachId>
</product>
</products>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>exec</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>"D:\Program Files (x86)\Windows Kits\8.1\bin\x64\signtool"</executable>
<arguments>
<argument>sign</argument>
<argument>/v</argument>
<argument>/f</argument>
<argument>D:\dev\projects\EASA Export\Sign\easa-CodeSign.pfx</argument>
<argument>/p</argument>
<argument>secret</argument>
<argument>/t</argument>
<argument>http://timestamp.digicert.com</argument>
<argument>??what goes here for each product being built??</argument>
</arguments>
</configuration>
</plugin>



Back to the top