TLS (SSL) negotiation failed #596
Unanswered
rashmimaharana
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
I am using 'software.amazon.nio.s3:aws-java-nio-spi-for-s3:2.2.0' running minio server in local. While trying to upload file to s3 bucket getting TLS negotiation failed error. I have created a s3 bucket in local using minio (https://min.io/). Any help. Pasting the code below and error message.
Error :
java.io.IOException: software.amazon.awssdk.core.exception.SdkClientException: Failed to send the request: TLS (SSL) negotiation failed
at software.amazon.nio.spi.s3.S3FileSystemProvider.newFileSystem(S3FileSystemProvider.java:195)
at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:339)
at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:288)
at src.s3test.service.NioFileSystemforS3.upload(NioFileSystemforS3.java:30)
`
public class NioFileSystemforS3 {
public static String upload(MultipartFile file) {
System.setProperty("software.amazon.awssdk.http.disableSslValidation", "true");
String bucketName = "mft-s3-test";
String endpoint = "http://localhost:9000";
String accessKey = "n2IZt97jQnPMmh**";
String secretKey = "YrZ6B7VaYZ5Ip2UH**";
}
`
Beta Was this translation helpful? Give feedback.
All reactions