@@ -204,28 +204,52 @@ function configureAdvancedWalletManagerMode(): AdvancedWalletManagerConfig {
204204 if ( config . tlsMode !== TlsMode . DISABLED ) {
205205 // Handle file loading for TLS certificates
206206 if ( ! config . serverTlsKey && config . serverTlsKeyPath ) {
207- config = { ...config , serverTlsKey : readCertFile ( config . serverTlsKeyPath , 'TLS private key' ) } ;
207+ config = {
208+ ...config ,
209+ serverTlsKey : readCertFile ( config . serverTlsKeyPath , 'TLS private key' ) ,
210+ } ;
208211 } else if ( config . serverTlsKey ) {
209212 logger . info ( '✓ TLS private key loaded from environment variable' ) ;
210213 }
211214
212215 if ( ! config . serverTlsCert && config . serverTlsCertPath ) {
213- config = { ...config , serverTlsCert : readCertFile ( config . serverTlsCertPath , 'TLS certificate' ) } ;
216+ config = {
217+ ...config ,
218+ serverTlsCert : readCertFile ( config . serverTlsCertPath , 'TLS certificate' ) ,
219+ } ;
214220 } else if ( config . serverTlsCert ) {
215221 logger . info ( '✓ TLS certificate loaded from environment variable' ) ;
216222 }
217223
218224 if ( ! config . keyProviderServerCaCertPath ) {
219225 throw new Error ( 'KEY_PROVIDER_SERVER_CA_CERT_PATH is required when TLS mode is MTLS' ) ;
220226 }
221- config = { ...config , keyProviderServerCaCert : readCertFile ( config . keyProviderServerCaCertPath ! , 'Key provider server CA certificate' ) } ;
227+ config = {
228+ ...config ,
229+ keyProviderServerCaCert : readCertFile (
230+ config . keyProviderServerCaCertPath ! ,
231+ 'Key provider server CA certificate' ,
232+ ) ,
233+ } ;
222234
223235 if ( config . keyProviderClientTlsKeyPath ) {
224- config = { ...config , keyProviderClientTlsKey : readCertFile ( config . keyProviderClientTlsKeyPath , 'Key provider client key' ) } ;
236+ config = {
237+ ...config ,
238+ keyProviderClientTlsKey : readCertFile (
239+ config . keyProviderClientTlsKeyPath ,
240+ 'Key provider client key' ,
241+ ) ,
242+ } ;
225243 }
226244
227245 if ( config . keyProviderClientTlsCertPath ) {
228- config = { ...config , keyProviderClientTlsCert : readCertFile ( config . keyProviderClientTlsCertPath , 'Key provider client certificate' ) } ;
246+ config = {
247+ ...config ,
248+ keyProviderClientTlsCert : readCertFile (
249+ config . keyProviderClientTlsCertPath ,
250+ 'Key provider client certificate' ,
251+ ) ,
252+ } ;
229253 }
230254
231255 // Validate that client certificates are provided for outbound mTLS connections
0 commit comments