Skip to content

Conversation

@emincihangeri
Copy link
Contributor

Closes SAP/ai-sdk-js-backlog#358.

Copy link
Member

@davidkna-sap davidkna-sap left a comment

Choose a reason for hiding this comment

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

In addition, tests should be updated (and all the other checks).

if (aliases.length === 0) {
throw Error('No entries found in JKS keystore');
}
const alias = aliases[0]; // Use first alias
Copy link
Member

Choose a reason for hiding this comment

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

[q] How does the java sdk handle multiple keys?
[pp] If supporting multiple keys is not a requirement, I would also throw if aliases.length > 1.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I checked this in Java, all private keys are loaded into the key manager.
For now, as the original issue is solved with the current implementation, we can create a follow-up to handle multiple aliases.
IMO, all the aliases can be returned as Node.JS TLS https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options seems to support multiple cert chains.

emincihangeri and others added 2 commits December 3, 2025 14:43
Copy link
Collaborator

@KavithaSiva KavithaSiva left a comment

Choose a reason for hiding this comment

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

I have left two comments to work on.

Copy link
Collaborator

@KavithaSiva KavithaSiva left a comment

Choose a reason for hiding this comment

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

LGTM

@KavithaSiva KavithaSiva dismissed davidkna-sap’s stale review December 29, 2025 12:35

All changes addressed.

@KavithaSiva KavithaSiva enabled auto-merge (squash) December 29, 2025 12:35
@KavithaSiva KavithaSiva merged commit ab96aff into main Dec 29, 2025
16 checks passed
@KavithaSiva KavithaSiva deleted the support-jks branch December 29, 2025 12:41
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.

4 participants