Skip to content

Commit 4c28ff4

Browse files
feat(awm): rectifying rebase issues
Ticket: WCN-362
1 parent bb6f91c commit 4c28ff4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/initConfig.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@ function configureAdvancedWalletManagerMode(): AdvancedWalletManagerConfig {
218218
if (!config.keyProviderServerCaCertPath) {
219219
throw new Error('KEY_PROVIDER_SERVER_CA_CERT_PATH is required when TLS mode is MTLS');
220220
}
221-
config.kmsServerCaCert = readCertFile(config.kmsServerCaCertPath, 'KMS server CA certificate');
221+
config = { ...config, keyProviderServerCaCert: readCertFile(config.keyProviderServerCaCertPath!, 'Key provider server CA certificate') };
222222

223-
if (config.kmsClientTlsKeyPath) {
224-
config.kmsClientTlsKey = readCertFile(config.kmsClientTlsKeyPath, 'KMS client key');
223+
if (config.keyProviderClientTlsKeyPath) {
224+
config = { ...config, keyProviderClientTlsKey: readCertFile(config.keyProviderClientTlsKeyPath, 'Key provider client key') };
225225
}
226226

227-
if (config.kmsClientTlsCertPath) {
228-
config.kmsClientTlsCert = readCertFile(config.kmsClientTlsCertPath, 'KMS client certificate');
227+
if (config.keyProviderClientTlsCertPath) {
228+
config = { ...config, keyProviderClientTlsCert: readCertFile(config.keyProviderClientTlsCertPath, 'Key provider client certificate') };
229229
}
230230

231231
// Validate that client certificates are provided for outbound mTLS connections
@@ -580,7 +580,7 @@ export function initConfig(): Config {
580580
const appMode = determineAppMode();
581581

582582
if (appMode === AppMode.ADVANCED_WALLET_MANAGER) {
583-
return configureAdvancedWalletManagaerMode();
583+
return configureAdvancedWalletManagerMode();
584584
} else if (appMode === AppMode.MASTER_EXPRESS) {
585585
return configureMasterExpressMode();
586586
} else {

0 commit comments

Comments
 (0)