I am using keytool-maven-plugin to create a PKCS#12 keystore, but skip if it
already exist. This keystore is used with continous builds. Somehow the
resulting self-signed keystore.p12 cannot be used to verify a released JAR
that has been signed with a PKCS12 keystore containing a purchased
certificate.
By using the PKCS12 keystore created by keytool-maven-plugin I am getting
this error when building:
[ERROR] Failed to execute goal
org.codehaus.mojo:webstart-maven-plugin:1.0-beta-6:jnlp-single (default) on
project myProject: Could not verify jar
If I create a PKCS12 keystore manually I have no problem building:
keytool -genkey -keyalg RSA -alias alias -keystore keystore.p12 -storetype
pkcs12 -storepass ********** -validity 360 -keysize 2048
So is it a bug in keytool-maven-plugin or something missing from my
configuration?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>keytool-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<goals>
<goal>generateKeyPair</goal>
</goals>
<phase>generate-resources</phase>
</execution>
</executions>
<configuration>
<keystore>${user.home}/keystore.p12</keystore>
<dname>CN=${hostname}.company.no, OU=Systems, O=Company
AS, L=Oslo, ST=Oslo, C=NO</dname>
<alias>alias</alias>
<storepass>storepass</storepass>
<storetype>pkcs12</storetype>
<skipIfExist>true</skipIfExist>
<verbose>true</verbose>
</configuration>
</plugin>
--
View this message in context:
http://maven.40175.n5.nabble.com/Keytool-maven-plugin-creates-failed-PKCS12-keystore-tp5866163.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]