gpt4 book ai didi

java - 错误消息 "javax.net.ssl.SSLException: Could not find any key store entries to support the enabled cipher suites"是什么意思?

转载 作者:太空宇宙 更新时间:2023-11-03 13:48:49 24 4
gpt4 key购买 nike

我目前正在开发 Android 服务器应用程序。在执行下面的代码期间,我收到以下错误(从 AVD 环境进行测试)。

08-12 21:06:43.098: INFO/System.out(1632): javax.net.ssl.SSLException: Could not find any key store entries to support the enabled cipher suites.

private void startServer() {
//Initialize serverSocketFactory
serverSocketFactory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault();

ServerSocket serverSocket = null;

try {
//This is where I got the error...
serverSocket = serverSocketFactory.createServerSocket(serverPort);
boolean asdf = false;

while(asdf) {
try {
Socket socket = serverSocket.accept();
} catch (IOException e) {
// TODO: handle exception
System.out.println(e.toString());
}
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} finally {
if (serverSocket != null) {
try {
serverSocket.close();
} catch(IOException e) {
//asdfasdfasdf
}
}
}
}

执行行 serverSocket = serverSocketFactory.createServerSocket(serverPort); 期间发生错误。我找不到有关此错误的正确文档。

最佳答案

意思就是它所说的。客户端在打招呼时指定了一组可接受的密码套件;然后服务器去寻找一个符合该集合但不符合的证书。因此,要么客户端需要减少对密码套件的限制,要么服务器需要不同类型的证书。或者可能服务器根本没有证书。

关于java - 错误消息 "javax.net.ssl.SSLException: Could not find any key store entries to support the enabled cipher suites"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7046645/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com