Skip to content

signing: Write META-INF signing resources immediately after manifest #5268

Merged
bjhargrave merged 4 commits intobndtools:masterfrom
bjhargrave:jar-signing
May 28, 2022
Merged

signing: Write META-INF signing resources immediately after manifest #5268
bjhargrave merged 4 commits intobndtools:masterfrom
bjhargrave:jar-signing

Conversation

@bjhargrave
Copy link
Member

JarInputStream requires the META-INF signing resources to come
after the manifest and before any other resources. Otherwise,
JarInputStream does not consider the jar to be properly signed.

Later versions of Equinox now use JarInputStream to verify the
jar signing replacing Equinox's custom verification code. So Bnd
needs to properly generate signed jars to work with JarInputStream.

We also define a standard pattern for the META-INF signing resources
which is used by other classes that care.

Signing is only possible when using the standard manifest name.

Signed-off-by: BJ Hargrave <[email protected]>
JarInputStream requires the META-INF signing resources to come
after the manifest and before any other resources. Otherwise,
JarInputStream does not consider the jar to be properly signed.

Later versions of Equinox now use JarInputStream to verify the
jar signing replacing Equinox's custom verification code. So Bnd
needs to properly generate signed jars to work with JarInputStream.

We also define a standard pattern for the META-INF signing resources
which is used by other classes that care.

Signed-off-by: BJ Hargrave <[email protected]>
@bjhargrave bjhargrave merged commit 1e03d93 into bndtools:master May 28, 2022
@bjhargrave bjhargrave deleted the jar-signing branch May 28, 2022 21:27
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