How do you run your app? is trust store overridden somehow?
On Tue, Jul 2, 2024 at 6:10 PM Srikant Mantha <mantha.srik...@outlook.com> wrote: > Hi, > I am using camel aws s3 to upload a file in my camel-springboot > microservice with camel aws version as 4.5.0. I am facing connectivity > issues to the S3 bucket with the > > exception message like “unable to find valid certification path to the > requested target” > > Below is my config and endpoint call > > My Camel Processor code > > //set the payload in the exchange body and the S3 url is constructed in > the S3Config > String endpointUri = “s3://”+s3Config.getBucketName(); > producerTemplate.send(endpointUri, exchange); > > Reference of S3Config > > String awsBucketAccessKey = "your_access_key"; > String awsBucketSecretKey = "your_secret_key"; > > //exposed as a @Bean(“s3”) > AWS2S3Component s3 = new AWS2S3Component(); > s3.setConfiguration(getConfiguration()); > s3.setHealthCheckProducerEnabled(true); > s3.setLazyStartProducer(true); > > //autowire and register the bean > camelContext.addComponent(“aws2-s3”, s3); > > > getConfiguration() method > AWS2S3Configuration configuration = new AWS2S3Configuration(); > > S3Client s3Client = > S3Client.builder().credentialsProvider(StaticCredentialsProvider.create(AwsBasicCredentials.create(awsBucketAccessKey, > awsBucketSecretKey))) > .region(Region.US_EAST_1).build(); > > configuration.setAmazonS3Client(s3Client); > configuration.setAutoDiscoverClient(true); -• I cannot find this property > in camel-aws 4.5.0 > configuration.setBucketName("s3bucket2020"); > configuration.setRegion("us-east-1"); > > > From the application SSL DEBUG logs, I see problems in establishing > connection > > 1. Connecting socket to AMAZON S3 HOSTNAME > 2. Enabled Protocols > 3. Enabled cipher suites > 4. Starting handshake > 5. Shutdown connection > 6. Connection discarded > > Is there any SSL Configuration that I must set at the configuration level, > I am confused now since I am already passing the credentials. What am I > missing here ? > > -Regards > Srikant Mantha >