Hi,
I got the certifcate which is having sterortype as pkcs12.
I need to add this into pom.xml.
I had given alias,storepass correctly except sterortype.
Getting error as jarsigner error: java.lang.RuntimeException: keystore load: Invalid keystore format
You have not explicitly specified the 'storetype' (not 'sterotype') as pkcs12 so the default store type is assumed (which as I would expect would seen not to be pkcs12). Read the Mavern documentation for the 'jarsigner:sign' plugin.
Exactly - that is why the exception was thrown !!! You need to specify the 'storetype' as pkcs12 !!! The documentation tells you exactly how to do that.
You have lost me. There is no 'signedjar' element in jarsigner:sign specification. For both signing and verifying the jar is specified using the 'archive' and 'achiveDirectory' elements (the first two in http://maven.apache.org/plugins/maven-jarsigner-plugin/sign-mojo.html ).