Skip to content

Commit 3372a21

Browse files
author
M. Emin Cihangeri
committed
chore: Remove throw error
1 parent e61ac9a commit 3372a21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ function getKeyStoreOptions(destination: Destination):
137137
getFormat(certificate) === 'jks' ||
138138
getFormat(certificate) === 'keystore'
139139
) {
140-
if (!destination.keyStorePassword) {
141-
throw Error('Keystore password is required for JKS format');
142-
}
143-
const pemKeystore = jks.toPem(certBuffer, destination.keyStorePassword);
140+
const pemKeystore = jks.toPem(
141+
certBuffer,
142+
destination.keyStorePassword || ''
143+
);
144144
const aliases = Object.keys(pemKeystore);
145145
if (aliases.length === 0) {
146146
throw Error('No entries found in JKS keystore');

0 commit comments

Comments
 (0)