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

SSLException: Unrecognized SSL message, plaintext connect #10

Closed
ghost opened this issue May 3, 2018 · 2 comments
Closed

SSLException: Unrecognized SSL message, plaintext connect #10

ghost opened this issue May 3, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented May 3, 2018

Hi.
I think this is more a question than an issue.
Thing is, I'm trying to use InstallCert to resolve a problem I'm having with another extension (ashwanthkumar/gocd-slack-build-notifier#81)
but I keep getting this error:
image
(I just changed the IP for security reasons). I have looked the other issues but did not find a similar one.

Searching for it on google, it states that this error happened when trying to accesss HTTPS urls.
Is there any way that this is related to this situation?
And how can I fix it?
Thank you

Edit:
Just did a test with Google and it worked fine:
image

How could I get this to work with my server? The IP XX.X.X.XXX:443 did not work, because we have a specific port

@muzikurry
Copy link

I have got the same issue.

D:>java InstallCert localhost:8090
Loading KeyStore D:\Java\lib\security\cacerts...
Opening connection to localhost:8090...
Starting SSL handshake...

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(Unknown Source)
at sun.security.ssl.InputRecord.read(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at InstallCert.main(InstallCert.java:98)
Could not obtain server certificate chain

@escline
Copy link
Owner

escline commented May 19, 2020

The host and port you are connecting to must be an SSL connection. If it's not, you will get the "javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?" message.

https://stackoverflow.com/questions/6532273/unrecognized-ssl-message-plaintext-connection-exception

@escline escline closed this as completed May 19, 2020
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

2 participants