Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL peer shut down incorrectly #157

Closed
TnCoders opened this issue Mar 23, 2021 · 1 comment
Closed

SSL peer shut down incorrectly #157

TnCoders opened this issue Mar 23, 2021 · 1 comment

Comments

@TnCoders
Copy link

TnCoders commented Mar 23, 2021

Hello I'am having This error when i try to send email

com.mailjet.client.errors.MailjetClientCommunicationException: Connection Exception
at com.mailjet.client.MailjetClient.post(MailjetClient.java:123)
at com.mailjet.client.transactional.SendEmailsRequest.sendWith(SendEmailsRequest.java:61)
...
...
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:994)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379)
at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.java:336)
at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.java:300)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:185)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88)
at okhttp3.internal.connection.Transmitter.newExchange(Transmitter.java:169)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:229)
at okhttp3.RealCall.execute(RealCall.java:81)
at com.mailjet.client.MailjetClient.post(MailjetClient.java:118)
... 53 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(InputRecord.java:505)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975)
... 77 more

I'm using
Mailjet 5.1.1
Spring Boot 2.4.3

This Spring App is Dockerized using:

FROM openjdk:8-jdk-alpine

This is how i create the mailjet Client:

ClientOptions options = ClientOptions.builder().apiKey(env.getProperty("MJ_APIKEY_PUBLIC"))
.apiSecretKey(env.getProperty("MJ_APIKEY_PRIVATE")).build();

MailjetClient client = new MailjetClient(options);

the Other code is like the exemple on the documentation here.

EDIT:

I tested from my Infra to nmap this is the result :


/var/www/html# nmap --script ssl-enum-ciphers -p 443 in-v3.mailjet.com
Starting Nmap 7.70 ( https://nmap.org ) at 2021-03-24 10:47 UTC
Nmap scan report for in-v3.mailjet.com (104.199.96.85)
Host is up (0.0014s latency).
rDNS record for 104.199..: 85.96...bc.googleusercontent.com

PORT STATE SERVICE
443/tcp open https

Nmap done: 1 IP address (1 host up) scanned in 6.98 seconds

Another Try on api.mailjet

nmap --script ssl-enum-ciphers -p 443 api.mailjet.com
Starting Nmap 7.70 ( https://nmap.org ) at 2021-03-24 11:03 UTC
Nmap scan report for api.mailjet.com (35.187.79.8)
Host is up (0.0016s latency).
rDNS record for ** ********: *********.bc.googleusercontent.com

PORT STATE SERVICE
443/tcp open https

Nmap done: 1 IP address (1 host up) scanned in 6.41 seconds


No ssl-enum-ciphers: TLSv1.0 + ..... in the response.

What Do you Think ?

@TnCoders
Copy link
Author

It apear It was Infra Probleme Solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant