kaikramer / keystore-explorer

KeyStore Explorer is a free GUI replacement for the Java command-line utilities keytool and jarsigner.
https://keystore-explorer.org/
GNU General Public License v3.0
1.7k stars 275 forks source link

support TLS connections (that are not https) #158

Closed radai-rosenblatt closed 10 months ago

radai-rosenblatt commented 5 years ago

Is your feature request related to a problem? Please describe. im trying to examine the certificates on a server that speaks a binary protocol over TLS, and not https (specifically, kafka).

trying "examine ssl" right now gets me:

java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:792)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:789)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1569)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
    at java.net.HttpURLConnection.getResponseMessage(HttpURLConnection.java:546)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseMessage(HttpsURLConnectionImpl.java:382)
    at org.kse.utilities.ssl.SslUtils.readSSLConnectionInfos(SslUtils.java:130)
    at org.kse.gui.dialogs.DExaminingSsl$ExamineSsl.run(DExaminingSsl.java:207)
    at java.lang.Thread.run(Thread.java:745)

Describe the solution you'd like i'd like "examine ssl" to work for binary protocols over TLS just like it does for HTTPS

Describe alternatives you've considered ?

Additional context ?

kaikramer commented 5 years ago

Yeah, I would like that too, but it's difficult to implement (especially with proxy support) and there are many features that seem more important.

kaikramer commented 10 months ago

This has been working at least for some other protocols for a while. Please create a new issue, if a certain protocol is required.