We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e61ac9a commit 3372a21Copy full SHA for 3372a21
packages/connectivity/src/http-agent/http-agent.ts
@@ -137,10 +137,10 @@ function getKeyStoreOptions(destination: Destination):
137
getFormat(certificate) === 'jks' ||
138
getFormat(certificate) === 'keystore'
139
) {
140
- if (!destination.keyStorePassword) {
141
- throw Error('Keystore password is required for JKS format');
142
- }
143
- const pemKeystore = jks.toPem(certBuffer, destination.keyStorePassword);
+ const pemKeystore = jks.toPem(
+ certBuffer,
+ destination.keyStorePassword || ''
+ );
144
const aliases = Object.keys(pemKeystore);
145
if (aliases.length === 0) {
146
throw Error('No entries found in JKS keystore');
0 commit comments