truststore:pkcs12
Full name:
com.github.marschall:truststore-maven-plugin:0.7.0:pkcs12
Description:
Generates a PKCS12 truststore from a collection of certificates
located in a folder. Supports the "pkcs12" packaging of a project.
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase:
package.
Optional Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<finalName> |
String |
- |
Name of the generated truststore without a file extension. Default value is: ${project.build.finalName}. |
<password> |
String |
- |
The password to generate the truststore integrity check.
The password is optional and can be left out. This is supported out of the box on JDK 18+ and requires the following system properties on earlier versions
User property is: truststore.password. |
<sourceDirectory> |
File |
- |
The directory in which the certificates to add to the truststore
are located. Default value is: ${project.basedir}/src/main/certificates. |
Parameter Details
<finalName>
Name of the generated truststore without a file extension.
- Type:
java.lang.String - Required:
No - Default:
${project.build.finalName}
<password>
The password to generate the truststore integrity check.
The password is optional and can be left out. This is supported out of the box on JDK 18+ and requires the following system properties on earlier versions
-Dkeystore.pkcs12.certProtectionAlgorithm=NONE -Dkeystore.pkcs12.macAlgorithm=NONE
- Type:
java.lang.String - Required:
No - User Property:
truststore.password
<sourceDirectory>
The directory in which the certificates to add to the truststore
are located.
- Type:
java.io.File - Required:
No - Default:
${project.basedir}/src/main/certificates
