OS Manuals

/usr/lib/jvm/java-17-openjdk-openj9/bin/jarsigner

OpenJDK 17 with OpenJ9

From openjdk-17-openj9 0.63.0-r0 (enterprise-packages), captured 2026-11-08 by running jarsigner --help (exit 0). permalink

Usage: jarsigner [options] jar-file alias
       jarsigner -verify [options] jar-file [alias...]

[-keystore <url>]           keystore location

[-storepass <password>]     password for keystore integrity

[-storetype <type>]         keystore type

[-keypass <password>]       password for private key (if different)

[-certchain <file>]         name of alternative certchain file

[-sigfile <file>]           name of .SF/.DSA file

[-signedjar <file>]         name of signed JAR file

[-digestalg <algorithm>]    name of digest algorithm

[-sigalg <algorithm>]       name of signature algorithm

[-verify]                   verify a signed JAR file

[-verbose[:suboptions]]     verbose output when signing/verifying.
                            suboptions can be all, grouped or summary

[-certs]                    display certificates when verbose and verifying

[-revCheck]                 Enable certificate revocation check

[-tsa <url>]                location of the Timestamping Authority

[-tsacert <alias>]          public key certificate for Timestamping Authority

[-tsapolicyid <oid>]        TSAPolicyID for Timestamping Authority

[-tsadigestalg <algorithm>] algorithm of digest data in timestamping request

[-altsigner <class>]        class name of an alternative signing mechanism
                            (This option is deprecated and will be removed in a future release.)

[-altsignerpath <pathlist>] location of an alternative signing mechanism
                            (This option is deprecated and will be removed in a future release.)

[-internalsf]               include the .SF file inside the signature block

[-sectionsonly]             don't compute hash of entire manifest

[-protected]                keystore has protected authentication path

[-providerName <name>]      provider name

[-addprovider <name>        add security provider by name (e.g. SunPKCS11)
  [-providerArg <arg>]] ... configure argument for -addprovider

[-providerClass <class>     add security provider by fully-qualified class name
  [-providerArg <arg>]] ... configure argument for -providerClass

[-strict]                   treat warnings as errors

[-conf <url>]               specify a pre-configured options file

[-? -h --help]              Print this help message
Options (23)
OptionDescriptionSource
-keystore urlSpecifies the URL that tells the keystore location.man
-storetype storetypeSpecifies the type of keystore to be instantiated.man
-certchain fileSpecifies the certificate chain to be used when the certificate chain associated with the private key of the keystore entry that is addressed by the alias specified on the command line isn't complete.man
-sigfile fileSpecifies the base file name to be used for the generated .SF and signature block files.man
-signedjar fileSpecifies the name of signed JAR file.man
-digestalg algorithmSpecifies the name of the message digest algorithm to use when digesting the entries of a JAR file.man
-sigalg algorithmSpecifies the name of the signature algorithm to use to sign the JAR file.man
-verifyVerifies a signed JAR file.man
-certsIf the -certs option appears on the command line with the -verify and -verbose options, then the output includes certificate information for each signer of the JAR file.man
-revCheckThis option enables revocation checking of certificates when signing or verifying a JAR file.man
-tsa urlIf -tsa http://example.tsa.url appears on the command line when signing a JAR file then a time stamp is generated for the signature.man
-tsacert aliasWhen -tsacert alias appears on the command line when signing a JAR file, a time stamp is generated for the signature.man
-tsapolicyid policyidSpecifies the object identifier (OID) that identifies the policy ID to be sent to the TSA server.man
-tsadigestalg algorithmSpecifies the message digest algorithm that is used to generate the message imprint to be sent to the TSA server.man
-internalsfIn the past, the signature block file generated when a JAR file was signed included a complete encoded copy of the .SF file (signature file) also generated.man
-sectionsonlyIf the -sectionsonly option appears on the command line, then the .SF file (signature file) generated when a JAR file is signed doesn't include a header that contains a hash of the whole manifest…man
-protectedValues can be either true or false.man
-providerName providerNameIf more than one provider was configured in the java.security security properties file, then you can use the -providerName option to target a specific provider instance.man
-JjavaoptionPasses through the specified javaoption string directly to the Java interpreter.man
-strictDuring the signing or verifying process, the command may issue warning messages.man
-conf urlSpecifies a pre-configured options file.man
-altsigner classThis option specifies an alternative signing mechanism.man
-altsignerpath classpathlistSpecifies the path to the class file and any JAR file it depends on.man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.