Skip to content

Commit 88d419a

Browse files
committed
Fix a bug that may cause handshake failure
1 parent 2958e1c commit 88d419a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ It still synchronizes with repository javaherobrine/CraftGame and it used to be
44

55
It includes a C/S library and a TCP connection debugger which allows you to send and receive plain text directly. You can use it to send a HTTP request, send an email through a SMTP server, etc.
66

7+
Also, it may help you deal with SSL/TLS certificates.
8+
9+
Releases are provided, but it's recommended to embed my code into your code directly under MIT License.
10+
711
`new Thread(new SocketUI(new Socket(host.port))).start();` works.
812

9-
[Document](https://javaherobrine.github.io/document/tcp)
13+
~[Document](https://javaherobrine.github.io/document/tcp)~ Need update(It's the legacy, the version that I deleted)
14+
15+
If you discovered this repository in 2021, you may know what I'm saying

io/github/javaherobrine/net/TLSUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static SSLContext getFromKSFile(String file,String version,String encrypt
1717
KeyManagerFactory km=KeyManagerFactory.getInstance(encrypt);
1818
km.init(keystore,pwd);
1919
TrustManagerFactory tmf=TrustManagerFactory.getInstance(encrypt);
20-
tmf.init((KeyStore)null);
20+
tmf.init(keystore);
2121
context.init(km.getKeyManagers(),tmf.getTrustManagers(),null);
2222
return context;
2323
}

0 commit comments

Comments
 (0)