Skip to content

Conversation

runeflobakk
Copy link
Member

Backport of #248

This small implementation is shaded into the signature-api-client-java
jar, to avoid version conflicts. As this functionality does not require
BouncyCastle, it is excluded from the certificate-validator dependency.
By using classpath reference.
Modifies the alias-generating for certificate to include the name of the containing
folder, because the file names for test and production CA certs are the
same, and to be able to reliably test that the trusts are containing the
expected certifiates. The aliases are not used by the client.

Add test that we recognize orgnr in SEID2 certs
Was based on an assumption that a path string obtained from a classpath URL can always be converted
to a Path instance, which is not the case, esp. on Windows.

Doing e.g. Paths.get("file:/C:/path/WEB-INF/lib/lib.jar!/file/in/jar") will make
sun.nio.fs.WindowsPathParser throw an InvalidPathException.
@runeflobakk runeflobakk requested a review from simenstoa June 28, 2022 13:20
@runeflobakk
Copy link
Member Author

Doing release from this branch, not merging to main.

@runeflobakk runeflobakk deleted the fix-certloading-windows-bug-6.1.1 branch June 28, 2022 13:58
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.

1 participant