Skip to content

Fix loading OpenJDK 21 keystores that do not have algo parameters#82

Open
maxnet wants to merge 1 commit into
kurtbrose:masterfrom
maxnet:fix-79-jdk21-compat
Open

Fix loading OpenJDK 21 keystores that do not have algo parameters#82
maxnet wants to merge 1 commit into
kurtbrose:masterfrom
maxnet:fix-79-jdk21-compat

Conversation

@maxnet

@maxnet maxnet commented Apr 27, 2026

Copy link
Copy Markdown

algo parameters are not set with newer keytool/jdk versions.
we do query them, resulting in an "pyasn1.error.PyAsn1Error: Attempted "index" operation on ASN.1 schema object" error.

They are not used by the code when algo_id == SUN_JKS_ALGO_ID, so we do not need them in that case.
Only used when algo_id == SUN_JCE_ALGO_ID, so move the code that queries them to that section

Closes #79

@brettdw-tamu

Copy link
Copy Markdown

Can someone please merge this pull request? This fix works and needs to be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loading JKS file written by OpenJDK Java 21 results in ASN.1 error

2 participants