Skip to content

Commit 8befd90

Browse files
author
M. Emin Cihangeri
committed
chore: Remove thrown error for multiple keys
1 parent e8a58cc commit 8befd90

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/connectivity/src/http-agent/http-agent.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,7 @@ function getKeyStoreOptions(destination: Destination):
145145
if (aliases.length === 0) {
146146
throw Error('No entries found in JKS keystore');
147147
}
148-
if (aliases.length > 1) {
149-
throw Error(
150-
'Multiple entries found in JKS keystore; only a single entry is supported'
151-
);
152-
}
153-
const alias = aliases[0]; // Use first alias
148+
const alias = aliases[0];
154149
const entry = pemKeystore[alias];
155150
if (!entry.cert || !entry.key) {
156151
throw Error('Invalid JKS entry: missing cert or key');

0 commit comments

Comments
 (0)