OS Manuals

/usr/lib/jvm/java-11-adoptium/bin/jarsigner

Adoptium OpenJDK 11

From adoptium-openjdk-11 11.0.33.5-r4 (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

[-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 has been deprecated.)

[-altsignerpath <pathlist>] location of an alternative signing mechanism
                            (This option has been deprecated.)

[-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 (20)
OptionDescriptionSource
-keystore urlSpecifies the URL that tells the keystore location.man
-storetype storetypeSpecifies the type of keystore to be instantiated.man
-sigfile fileSpecifies the base file name to be used for the generated .SF and .DSA files.man
-sigalg algorithmSpecifies the name of the signature algorithm to use to sign the JAR file.man
-digestalg algorithmSpecifies the name of the message digest algorithm to use when digesting the entries of a 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
-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 is not…man
-verboseWhen the -verbose option appears on the command line, it indicates verbose mode, which causes jarsigner to output extra information about the progress of the JAR signing or verification.man
-internalsfIn the past, the .DSA (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 does not include a header that contains a hash of the whole manifest…man
-protectedValues can be either true or false.man
-providerClass provider-class-nameUsed to specify the name of cryptographic service provider's master class file when the service provider is not listed in the java.security security properties file.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
-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
-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
-strictDuring the signing or verifying process, the command may issue warning messages.man
Examples (32) from the manual page, untested

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