Skip to content

Support jsign without google cloud platform#607

Open
bschwert wants to merge 3 commits into
eclipse-cbi:mainfrom
bschwert:594
Open

Support jsign without google cloud platform#607
bschwert wants to merge 3 commits into
eclipse-cbi:mainfrom
bschwert:594

Conversation

@bschwert

Copy link
Copy Markdown

If no kmsCredentials credentials are provided jsign can also use a PKCS#11 keystore and a storepass.

*/
@AutoValue
public abstract class JSigner implements CodeSigner {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private static final Logger logger = LoggerFactory.getLogger(JSigner.class);

import java.nio.file.Path;
import java.security.KeyStore;
import java.util.List;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

keyStoreBuilder.certfile(configuration().getCertificateChain().toFile());
}
} catch(IllegalArgumentException e){
// Ignore missing certficate chain;could be stored in keystore

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Ignore missing certficate chain;could be stored in keystore
logger.warn("An error occurred while building the certfile. This could be due to missing intermediate certificates that may already be stored in the keystore.", e);

@mbarbero

mbarbero commented Jul 3, 2026

Copy link
Copy Markdown
Member

Thank you for the contribution and for your patience for the long overdue review. Please look the suggested changes. Thanks!

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.

2 participants