Which Java JAR signing functions depend on RSA and elliptic-curve keys

In jarsigner, the signature block, the signer certificate chain and the optional timestamp depend on public-key algorithms, while manifest digests use hash algorithms. The sources on this page document ML-DSA as a key option from JDK 26 but do not show that the default signing setup has moved off RSA or EC.

On this page

Which jarsigner functions depend on public keys today, as of December 2026

If you must record which Java JAR signing functions rely on RSA and elliptic-curve keys, the short answer for jarsigner in JDK 26 is this: the signature block, the signer certificates and the optional timestamp depend on public-key algorithms (RSA, RSASSA-PSS, DSA, EC, EdDSA, and ML-DSA when you select it), while the digests of manifest entries and the TSA message imprint use SHA-384 by default. The jarsigner JDK 26 man page and the JAR File Specification for Java SE 26 are the two sources that set out this split. The sources read on 2026-12-04 document ML-DSA signing only from JDK 26 and state no change to the default algorithms, so treat ML-DSA as an opt-in choice, not a new default.

Release engineers, build owners and vendor-risk reviewers should each care for a different reason. Release engineers need to know which -sigalg and -digestalg values their pipelines pass, because -sigalg overrides the default and must match the private key. Build owners should confirm which JDK version their signing hosts actually run, since the ML-DSA documentation appears in JDK 26 and is absent from the JDK 24 man page checked. Vendor-risk reviewers should record that the public-key dependency sits in the signature and certificate chain, not in the manifest digests, so a review of a signed JAR's trust in its signer must focus on the certificate and algorithm choices.

Before you rely on these answers, confirm them yourself. Run jarsigner -verbose -certs against a representative signed JAR to see the block file extension and the algorithm names in use, check the jdk.jar.disabledAlgorithms and jdk.security.legacyAlgorithms entries in your JDK's java.security file, and ask Oracle or your distribution for any ML-DSA parameter sets and key sizes, because the sources read on this date state none. The sources also say nothing about SLH-DSA signing for JARs, so record that as unconfirmed rather than unsupported.

Which jarsigner key algorithms and defaults apply, by JDK version

This table compares what the jarsigner and keytool man pages document for JDK 24 and JDK 26, by key algorithm, including default signature and digest algorithms, block file extensions and whether ML-DSA appears. Read each row against the source in its final column, and confirm the behavior of your own JDK build, since the java.security file can change. The main takeaway is that the JDK 26 man page is the first checked that documents ML-DSA JAR signing, while RSA and EC defaults shown here still rely on SHA-2 digests and public-key signatures.

Key algorithmJDK 24 and JDK 26 documentationBlock file extension and ML-DSASource
DSADefault signature SHA256withDSA. Default key size 2048 bits in keytool.Block file .DSA. ML-DSA not listed.jarsigner JDK 26 man page; keytool JDK 26 man page
RSADefault signature SHA256withRSA below 624 bits, SHA384withRSA up to 7680 bits, SHA512withRSA above 7680 bits. Default key size 3072 bits in keytool.Block file .RSA. ML-DSA not listed.jarsigner JDK 26 man page; keytool JDK 26 man page
RSASSA-PSSDefault signature RSASSA-PSS with SHA-256, SHA-384 or SHA-512 on the same size thresholds as RSA.Block file .RSA. ML-DSA not listed.jarsigner JDK 26 man page
EC (ECDSA)Default signature SHA384withECDSA below 512 bits, SHA512withECDSA at 512 bits or more. Default key size 384 bits in keytool.Block file .EC. ML-DSA not listed.jarsigner JDK 26 man page; keytool JDK 26 man page
EdDSADefault signature Ed25519 (255) or Ed448 (448). Default group ed25519 in keytool.Block file .EC. ML-DSA not listed.jarsigner JDK 26 man page; keytool JDK 26 man page
ML-DSAJDK 26 man page lists default signature ML-DSA. No parameter sets or key sizes stated for ML-DSA.Block file .DSA. Listed in JDK 26 only, not in JDK 24.jarsigner JDK 26 man page; jarsigner JDK 24 man page
SLH-DSANo SLH-DSA signing documented in the JDK 26 man page checked.Not documented.jarsigner JDK 26 man page
Digest for JAR entries (-digestalg)Defaults to SHA-384 when not specified.Not applicable.jarsigner JDK 26 man page
Digest for TSA imprint (-tsadigestalg)Defaults to SHA-384 when not specified.Not applicable.jarsigner JDK 26 man page
Disabled and legacy algorithms (java.security, read 2026-12-04)jdk.jar.disabledAlgorithms includes RSA keySize < 1024, DSA keySize < 1024, SHA1 denyAfter 2019-01-01. jdk.security.legacyAlgorithms includes RSA keySize < 2048 and DSA keySize < 2048. Confirm these on your own JDK build.Not applicable.OpenJDK java.security file

Which parts of jarsigner use public-key cryptography

jarsigner relies on public-key algorithms in several places, and each one has its own algorithm choices and defaults. Reviewing them one at a time shows which signatures, certificates and timestamps need attention and which settings decide whether a signed JAR is accepted at all.

The signature block

Each signer produces a .SF signature file and a PKCS #7 block file. The block file extension depends on the key algorithm: .RSA for RSA or RSASSA-PSS keys, .EC for EC or EdDSA keys, and .DSA for DSA or any other key algorithm. The JAR File Specification for Java SE 26 mandates no particular digest or signature algorithm. Check which key type your signing identity uses, because that choice sets the block file type and the public-key algorithm that verifiers must handle. The ML-DSA entry in the JDK 26 man page uses the .DSA extension, so confirm the extension your verifiers expect before you change key types.

JAR specification

The signer certificate chain

The certificate that carries the signing key is an X.509 certificate stored in the keystore, and its chain is included with the signature. The public key in that certificate, whether RSA, DSA, EC, EdDSA or ML-DSA, determines which signature algorithm the chain supports. The jdk.certpath.disabledAlgorithms property in the java.security file applies to certificates that sign JARs, and it disables EC keys below 224 bits and SHA-1 signing after 2019-01-01. Confirm the key types and sizes in each chain, not only the leaf certificate.

java.security file

The optional timestamp from a TSA

With -tsa, jarsigner requests a timestamp from a Time Stamping Authority, and -tsacert can take the TSA URL from a keystore alias certificate. The timestamp lets verifiers accept a JAR signed while its certificate was valid, even after expiry. The TSA signs a message imprint whose digest defaults to SHA-384 through -tsadigestalg, and the TSA's own certificate and signature use public-key algorithms. Ask your TSA which signature algorithms and key sizes it uses, because the sources here do not describe them.

jarsigner man page

The keystore and hardware token

The default keystore type is pkcs12, which stores the private key that performs the signing. Setting -keystore NONE with -storetype PKCS11 selects a hardware token, so the private key never leaves the device. The -providerName, -providerClass, -providerPath and -addprovider options select a cryptographic provider. Confirm which provider and token firmware handle your private keys, because support for post-quantum key types depends on that provider and not only on jarsigner.

jarsigner man page

Algorithm defaults and overrides

When you omit -sigalg, jarsigner picks a signature algorithm from the key type and size. RSA keys default to SHA256withRSA below 624 bits, SHA384withRSA up to 7680 bits, and SHA512withRSA above that. EC keys default to SHA384withECDSA below 512 bits and SHA512withECDSA from 512 bits up. Any -sigalg override must match the private key, and -digestalg defaults to SHA-384. Record the defaults your build produces, because a key-size change alters the algorithm silently.

jarsigner man page

Disabled and legacy algorithm properties

The jdk.jar.disabledAlgorithms property decides whether a signature counts. A JAR signed with a disabled algorithm is treated as unsigned, and in the java.security file read on 2026-12-04 it disables MD2, MD5, RSA keys below 1024 bits, DSA keys below 1024 bits and SHA-1 after 2019-01-01. The jdk.security.legacyAlgorithms property treats a JAR signed with a legacy algorithm as signed but raises an informational warning, and it lists RSA and DSA keys below 2048 bits. Review both properties in each JDK your verifiers run, because a signature accepted by one JDK may be rejected by another.

java.security file

How the answer changes by JDK version and key type

The JDK 24 jarsigner man page lists only DSA, RSA, RSASSA-PSS, EC and EdDSA in its supported algorithms table. It does not mention ML-DSA or post-quantum cryptography, so for JDK 24 the public-key dependencies are the classical algorithms listed there.

  • Supported key algorithms: DSA, RSA, RSASSA-PSS, EC and EdDSA, as listed in the JDK 24 man page.
  • No ML-DSA entry: the page does not describe ML-DSA keys, signatures or block files.
  • Signature block dependency: the signature block and signer certificate chain depend on the classical public-key algorithm of the signing key.
  • Digest dependency: manifest digests use hash algorithms, which the page does not tie to post-quantum signing.

Confirm the JDK version in use with java -version and check its jarsigner documentation before recording the algorithm list in your inventory.

What to check first in your jarsigner inventory

This sequence builds a written record of every JAR signing pipeline, the keys and algorithms each one uses, the timestamp settings, and the Java security policy on each build host. The result shows which signing functions depend on RSA, RSASSA-PSS, DSA, ECDSA or EdDSA keys today and which configuration questions remain open for the vendor.

  1. List each signing pipeline and its JDK version

    Release engineers should identify every place a JAR is signed, including developer workstations, CI runners, release servers and any scripts that call jarsigner or the jdk.security.jarsigner API. For each one, record the JDK version by running java -version on that host, since the jarsigner behavior you can rely on depends on the release. Also note that the JDK 26 jarsigner documentation is the first Oracle page checked that mentions ML-DSA signing, while the JDK 24 page lists only DSA, RSA, RSASSA-PSS, EC and EdDSA. The step is complete when every pipeline has a named owner and a recorded JDK version in your inventory.

  2. Record the signing key algorithm and key size

    For each signing keystore, run keytool -list -v against the keystore and record the key algorithm, key size and the certificate chain of the signer. Keys created before a JDK update may carry older defaults, so compare the recorded values with the keytool defaults documented for JDK 26, which list 3072 bits for RSA, 384 bits for EC, 2048 bits for DSA and the ed25519 group for EdDSA. Note the keystore type as well, because the jarsigner default is pkcs12 and hardware tokens are selected through PKCS11 options. The step is complete when each key has a recorded algorithm, size, keystore type and expiry date.

  3. Record the sigalg, digestalg and tsa settings

    Check each signing command or build script for the -sigalg, -digestalg, -tsa, -tsacert and -tsadigestalg options. If -sigalg is absent, the signature algorithm falls back to the key-dependent default, such as SHA384withECDSA or SHA256withRSA for small RSA keys, so record the resolved default for each key rather than assuming one. The digest algorithm defaults to SHA-384 when -digestalg is not given, and the TSA message imprint uses the same default when -tsadigestalg is not given. Record whether a Time Stamping Authority URL is set, and whether it comes from -tsa directly or from a certificate through -tsacert. The step is complete when every pipeline has its effective signature algorithm, digest algorithm and timestamp source written down.

  4. Check the disabled and legacy algorithm lists

    On each build host, open the java.security file in the JDK's conf/security directory and read the jdk.jar.disabledAlgorithms, jdk.security.legacyAlgorithms and jdk.certpath.disabledAlgorithms properties. In the OpenJDK source file read on 2026-12-04, jdk.jar.disabledAlgorithms included SHA1 with a denyAfter date of 2019-01-01, RSA keys under 1024 bits and DSA keys under 1024 bits, while jdk.security.legacyAlgorithms listed RSA and DSA keys under 2048 bits. Confirm that the values on your hosts match or are stricter than these, because a JAR signed with a disabled algorithm is treated as unsigned. The step is complete when each host's effective values are recorded and any local overrides are noted.

  5. Confirm the ML-DSA default with Oracle

    The JDK 26 jarsigner page lists ML-DSA as a key algorithm with a default signature algorithm of ML-DSA and a .DSA block file extension, but it gives no parameter sets, key sizes or instruction to enable ML-DSA beyond generating a key and signing with it. Oracle's JDK 26 migration guide lists Signed JAR Support for ML-DSA under security updates and links to JDK-8349732, without further text on defaults. Ask Oracle, through its Java support channels or the JDK 26 release notes, whether any ML-DSA signing default is set in a JDK release, which parameter sets apply to JAR signing, and whether the java.security properties for newly created ML-DSA keys change how signed JARs are produced. The step is complete when the answers are written down with their dates and the source of each answer.

What the sources do not say about ML-DSA and JAR signing

The Oracle pages checked document ML-DSA only as a key algorithm name in the JDK 26 jarsigner page, with no parameter sets, sizes or defaults. Each gap below is something a security lead should confirm with Oracle or the JDK maintainers before recording an answer about JAR signing readiness.

No ML-DSA parameter sets or sizes

The JDK 26 jarsigner man page lists an ML-DSA key algorithm with default signature algorithm ML-DSA and block file extension .DSA, but it states no parameter sets and no key sizes for ML-DSA. The sources do not say which ML-DSA parameter set jarsigner selects by default or whether a different set can be chosen. Ask Oracle or the JDK maintainers which parameter sets jarsigner accepts, which one applies when none is specified, and how the choice appears in the signed JAR's signature block.

jarsigner JDK 26 man page

No SLH-DSA signing for JARs

The JDK 26 jarsigner man page mentions no SLH-DSA, so the sources document no SLH-DSA signing for JAR files. Organizations that want a hash-based signature option for long-lived artifacts have no documented path in this tool from the pages checked. Ask Oracle or the JDK maintainers whether SLH-DSA signing is planned for jarsigner, in which JDK release, and whether it would appear in the same key algorithm table as ML-DSA.

jarsigner JDK 26 man page

No post-quantum hybrid signature

The sources describe post-quantum hybrid key exchange for TLS in JEP 527, which the Inside.java article says is integrated into JDK 27. That article does not mention ML-DSA or JAR signing, and the jarsigner page documents no hybrid signature that combines a classical algorithm with ML-DSA. Ask Oracle or the JDK maintainers whether jarsigner will offer a hybrid signature for JAR files, and whether one signed JAR could carry both a classical and a post-quantum signature for verifiers that have not yet upgraded.

Inside.java JEP 527 article

No stated default change from RSA or EC

The JDK 26 jarsigner man page gives default signature algorithms for DSA, RSA, RSASSA-PSS, EC and EdDSA by key size, and it lists ML-DSA without a comparable default rule. The sources do not say whether ML-DSA will become the default for any existing key type or at which JDK release a default would change. Ask Oracle or the JDK maintainers whether any default signature or digest algorithm is planned to change, and in which release, before setting a policy that depends on the current defaults.

jarsigner JDK 26 man page

Migration guide entry gives no detail

The JDK 26 migration guide lists Signed JAR Support for ML-DSA under Security Updates and links to release note JDK-8349732, but it gives no further text on defaults, parameter sets or required steps. Teams planning an upgrade cannot take the required configuration from that entry alone. Ask Oracle or the JDK maintainers for the full text of JDK-8349732 and for any migration steps that apply to existing JARs and verifiers.

JDK 26 migration guide

What can break when signing moves beyond RSA and EC

The main risk is that a JAR signed with a newer algorithm fails verification somewhere in the chain, and the failure may not look like an error. The JAR File Specification for Java SE 26 says each signer's PKCS #7 block file uses an extension that reflects the key algorithm (.RSA, .EC or .DSA), and the page checked does not mention ML-DSA. A verifier on an older JDK or a third-party tool may not recognise an ML-DSA block file or algorithm at all. Before moving any signing key to ML-DSA, test the signed JAR with every verifier your consumers run, including the JDK versions and build tools used in your own pipelines.

The more immediate failure mode is policy. The jarsigner command reads the jdk.jar.disabledAlgorithms property, and a JAR signed with a disabled algorithm is treated as unsigned. The java.security file read on 2026-12-04 lists MD5, SHA1 (denied after 2019-01-01), RSA and DSA keys under 1024 bits, and the legacy list flags RSA and DSA under 2048 bits with an informational warning. Confirm the effective value of these properties in each runtime, because a policy change can make a previously valid JAR appear unsigned without any change to the JAR itself.

Key handling is the third area to check. The java.security file says the ML-KEM and ML-DSA private key encoding properties apply to the SunJCE and SUN providers and may not be supported by other implementations. A keystore or HSM provider that does not yet hold ML-DSA keys cannot generate or use them, so jarsigner will fail or fall back to a different key. Ask your HSM and keystore vendors whether they support ML-DSA keys through the PKCS #11 or other provider interface you use, and test that path before planning a migration.

Questions security leads ask about jarsigner public-key dependencies

Is jarsigner quantum safe?

The sources do not support calling jarsigner quantum safe, and no certification or validation is claimed here. In the JDK 26 documentation, jarsigner signs with RSA, RSASSA-PSS, DSA, EC, EdDSA and, newly, ML-DSA keys, so the signature block and the signer certificate chain still depend on public-key algorithms that are not post-quantum by default. The default signature algorithms for RSA and EC keys are unchanged. Using ML-DSA is an explicit choice: you generate an ML-DSA key and sign with it. Whether that choice meets your requirements depends on your verifiers, your certificate chain and your policy. Confirm the exact behavior for your JDK build with Oracle's documentation for that release.

Which JDK version first documents ML-DSA for JAR signing?

JDK 26 is the first version checked that documents ML-DSA for JAR signing. The JDK 26 jarsigner man page lists an ML-DSA key algorithm with default signature algorithm ML-DSA and block file extension .DSA. Oracle's JDK 26 migration guide lists Signed JAR Support for ML-DSA under Security Updates, linking to release note JDK-8349732. The JDK 24 jarsigner man page lists only DSA, RSA, RSASSA-PSS, EC and EdDSA and does not mention ML-DSA. The sources checked do not say whether earlier builds were patched, so confirm the build history with Oracle before relying on a particular update release. Read the jarsigner JDK 26 man page for the table.

Does enabling ML-DSA signing cost extra?

The sources do not give a licensing or price for ML-DSA signing, because the JDK is open source and the sources checked mention no fee. The effort is what matters. Costs fall into three groups: generating and storing new ML-DSA keys and certificates, which usually means a new certificate authority or keystore process; testing that verifiers you depend on accept the new signatures; and operating a dual or transitional scheme for consumers that have not updated. Those costs recur as the key lifecycle runs. What drives them up is the number of signing pipelines, the number of consumers and how many runtimes they use. For a quote, ask for the work to be scoped in writing, including key management, verifier testing and rollback.

What breaks for consumers of signed JARs?

Consumers break when their verifier does not understand the algorithm used to sign. The JAR specification in JDK 26 mandates no digest or signature algorithm and does not mention ML-DSA, so verifier support is not guaranteed by the standard. The jdk.jar.disabledAlgorithms property treats a JAR signed with a disabled algorithm as unsigned, and jdk.security.legacyAlgorithms adds a warning for legacy algorithms. Check each consumer's runtime and security properties before you switch. Test with the JDK versions your consumers actually run. A JAR signed only with ML-DSA may fail verification on runtimes that lack support, so plan a transitional period in which the signature remains verifiable by the oldest consumer you must support.

What should we ask Oracle about JAR signing and post-quantum support?

Ask Oracle for written answers to a short list of questions that the sources leave open. Ask which JDK builds and update releases include ML-DSA signing, and whether any earlier update release was patched. Ask which ML-DSA parameter sets are supported for signing and what key sizes apply, because the jarsigner man page does not state them. Ask whether ML-DSA signatures are verified by default in each supported runtime, and how the jdk.jar.disabledAlgorithms and jdk.security.legacyAlgorithms properties treat them. Ask whether SLH-DSA signing is planned, since the page checked documents none. Ask for the support window for JDK 26 and for the migration path. Request these answers in writing and record the date and the JDK build each answer applies to.

Can our team inventory JAR signing dependencies alone, or do we need outside help?

Your team can start the inventory alone, and it is the right first step. Identify each pipeline that runs jarsigner, the keystore and key algorithm each one uses, the -sigalg, -digestalg and -tsa settings, and the consumers that verify the output. The sources document all of these options, and the file and property names are in the jarsigner and java.security references. Outside help becomes useful when you need the verifier testing across runtimes, a redesign of the key and certificate process, or evidence in a form your auditor or customer will accept. DeployOpen plans, implements, tests and documents self-hosted platforms in your own infrastructure, and prepares evidence for compliance assessments, but it does not issue audit reports or certifications. Scope any outside work in writing before it starts.

How DeployOpen works on this

DeployOpen starts by listing every jarsigner invocation, keystore and timestamp setting in your build and release pipelines, then records which signature, certificate and timestamp steps depend on RSA, EC or other public keys. The result is a written inventory that shows which JARs are affected and which settings need review.

How we scope

  • We agree a written scope covering the build pipelines, signing hosts and keystores that produce your signed JARs.
  • We identify which JDK versions and jarsigner invocations your release process uses, since defaults differ by key type and size.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We map each signing step to its key algorithm, digest algorithm, signature algorithm and any -tsa timestamp authority.
  • We check the java.security settings your signing environment reads, including jdk.jar.disabledAlgorithms and jdk.security.legacyAlgorithms.
  • We test representative signed JARs against the verifiers your customers and deployments use, and record which configurations are accepted.

How we hand over

  • You receive a dependency inventory listing each keystore, key type, signature algorithm and timestamp service in use.
  • The inventory flags which signing settings rely on the default algorithms, and which were set explicitly in a command or config file.
  • We document the open questions to confirm with Oracle, your keystore owners and your timestamp authority before any change is made.

How we support

  • Ongoing support, upgrades and retesting after each JDK release are available as a retainer.
  • We can re-run the inventory when your signing pipeline, keystores or JDK baseline changes.
  • Support covers the signing environment and documentation; it does not include audit reports or certifications, which independent assessors issue.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.