jdk.jartool/sun.security.tools.jarsigner.Main - "jarsigner" Command
How to run "jarsigner" command from JDK lib\modules JImage file?
"jarsigner" command allows you to digitally sign JAR (Java ARchive) files or verify digital signatures provided in JAR files.
"jarsigner" command is supported by the jmods\jdk.jartool.jmod module file, which is also linked into the lib\modules JImage file in JDK 9, 10, and 11.
You can run the "jarsigner" command using the lib\modules JImage file as described below using JDK 11 as an example:
C:\fyicenter>set JDK_HOME=\fyicenter\jdk-11.0.1 C:\fyicenter>%JDK_HOME%\bin\java --module jdk.jartool/sun.security.tools.jarsigner.Main 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
2020-02-07, 1107👍, 0💬
JDK 11 jdk.aot.jmod is the JMOD file for JDK 11 Ahead-of-Time (AOT) Compiler module. JDK 11 AOT Comp...
Apache Commons Lang 3 is the 3rd version of Apache Commons Lang, which provides a host of helper uti...
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.ja.. .
kernel.jar is a component in iText Java library to provide low-level functionalities. iText Java lib...
This package is the backport of java.util.concurrent API, introduced in Java 5.0 and further refined...