Unrecognized ssl message plaintext connection

I have a java complied package to speak with the https server on net. Running the compilation gives the following exception:

I think this is due to the connection established with the client machine is not secure. Is there any way to configure the local machine or ports in order to connect to the remote https server?

18 Answers 18

I think this is due to the connection established with the client machine is not secure.

It is due to the fact that you are talking to an HTTP server, not an HTTPS server. Probably you didn’t use the correct port number for HTTPS.

You should have a local SMTP domain name that will contact the mail server and establishes a new connection as well you should change the SSL property in your programming below

I got the same error message when I forgot to log in to the company firewall, before performing a POST request through a proxy.

I got the same error. it was because I was accessing the https port using http.. The issue solved when I changed http to https.

I face the same issue from Java application built in Jdevelopr 11.1.1.7 IDE. I solved the issue by unchecking the use of proxy form Project properties.

You can find it in the following: Project Properties -> (from left panle )Run/Debug/Profile ->Click (edit) form the right panel -> Tool Setting from the left panel -> uncheck (Use Proxy) option.

Adding this as an answer as it might help someone later.

I had to force jvm to use the IPv4 stack to resolve the error. My application used to work within company network, but while connecting from home it gave the same exception. No proxy involved. Added the jvm argument -Djava.net.preferIPv4Stack=true and all the https requests were behaving normally.

Читайте также:  Fallout 4 как поменять озвучку на русский

If you are running local using spring i’d suggest use:

It works for me using unit test.

It worked for me now, I have change the setting of my google account as below:

Though I have enabled SSL and TSL while running program in this link of same post. I spend a lot of time but than I realized and found this link. And done 2 following steps and setting control in google. :

Disable the 2-step verification (password and OTP)

Enabling to allow to access less secure app(Allow less secure apps: ON.)

Now I am able to send mail using above program.

Comments

Copy link Quote reply

rblazquez commented Jul 23, 2015

Hope you can help me with a weird behaviour.

Ive been using thie plugin with gmail and find no problems but now im changing to a new mail provider and im having an error:

ERROR job.MailSendJob — Unable to send email org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.xxxxxxxx.com, port: 587;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?. Failed messages: javax.mail.MessagingException: Could not connect to SMTP host: smtp.xxxxxxxx.com, port: 587;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?; message exceptions (1) are:
Failed message 1: javax.mail.MessagingException: Could not connect to SMTP host: smtp.xxxxxxxx.com, port: 587;
nested exception is:
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

My configuration is:

grails <
mail <
host = "smtp.xxxxxxxx.com"
port = 587
username = "xxxxxxxx@xxxxxxxx.com"
password = "xxxxxxxx"
props = ["mail.smtp.starttls.enable":"true",
"mail.smtp.socketFactory.port":"587",
]
>
>

Can you help me to figure out whats happening?

Unable to pull a docker image from the repository .. Connecting to registry. Caught: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? at com.ibm.jsse2.a.c(a.java:249) at com.ibm.jsse2.a.a(a.java:15) at com.ibm.jsse2.as.a(as.java:129) at com.ibm.jsse2.as.i(as.java:387) at com.ibm.jsse2.as.a(as.java:615) at com.ibm.jsse2.as.startHandshake(as.java:91) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:535) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:403) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177

Читайте также:  Cubase 5 горячие клавиши

allowInsecure=true docker registery is setup on some local machine. We have tried 2.712414 and 3.780462.. no luck.

Rate this post

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *