Open source software supply chain lighting plan, waiting for you>>>
When using socket SSL two-way connection, the client can connect to the server
However, an error occurred when transferring data: javax.net.ssl.sslhandshakeexception: null cert chain
The reason is that the keystore file used is incorrect
First, create server-side private key and public key
1, keytool – genkey – alias serverkey – keystore kserver. KS
2, keytool – export – alias serverkey – keystore kserver. KS – file server. CRT
3, keytool – Import – alias serverkey – file server. CRT – keystore tclient. KS
create client-side private key and public key
1, keytool -genkey -alias clientkey -keystore kclient.ks
2, keytool -export -alias clientkey -keystore kclient.ks -file client.crt
3, keytool -import -alias clientkey -file client.crt -keystore tserver.ks
Kserver.ks and tserver.ks should be used in server and kclient.ks and tclient.ks should be used in client
Similar Posts:
- [How to Solve] UnrecoverableKeyException: Cannot recover key
- [Fixed] lazarus LAMW release-keystore.bat Could not Generate .keystore Files
- ActiveMQ Apollo Warning: javax.net.ssl.SSLException: Received fatal alert: certificate_unknown
- EM13C Add cluster Error: ADF_FACES-60096 [How to Solve]
- [Solved] javax.net.ssl.SSLException: Received fatal alert: protocol_version
- Git SSH public key authentication failed with git on Azure DevOps
- [Solved] remote calling three-party interface error: javax.net.ssl.SSLHandshakeException
- How to Solve MYSQL Error: Every derived table must have its own alias
- [Solved] Could not find method google() for arguments [] on repository container,rn react-native-camera …
- [Solved] MYSQL Error: “ Every derived table must have its own alias”