Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/386.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JavaEE7SSL密码套件_Java_Jakarta Ee_Ssl_Glassfish_Rsa - Fatal编程技术网

JavaEE7SSL密码套件

JavaEE7SSL密码套件,java,jakarta-ee,ssl,glassfish,rsa,Java,Jakarta Ee,Ssl,Glassfish,Rsa,我是SSL证书和密码套件的新手,这就是我寻求帮助的原因。我有一个GF4服务器和独立客户端。客户端通过iiop ssl连接到服务器。客户端没有显示异常,但挂起。通过javax.net.debug,我看到客户端上不断出现以下信息: Ignoring unavailable cipher suite: TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA Ignoring unavailable cipher suite: TLS_ECDH_RSA_WITH_AES_256_CBC_

我是SSL证书和密码套件的新手,这就是我寻求帮助的原因。我有一个GF4服务器和独立客户端。客户端通过iiop ssl连接到服务器。客户端没有显示异常,但挂起。通过javax.net.debug,我看到客户端上不断出现以下信息:

Ignoring unavailable cipher suite: TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA
Ignoring unavailable cipher suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA
Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_128_CBC_SHA256
Ignoring unavailable cipher suite: TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA
Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_256_CBC_SHA256
Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256
Ignoring unavailable cipher suite: TLS_ECDHE_RSA_WITH_RC4_128_SHA
Ignoring unavailable cipher suite: TLS_ECDH_ECDSA_WITH_RC4_128_SHA
Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
Ignoring unavailable cipher suite: TLS_ECDHE_ECDSA_WITH_RC4_128_SHA
Ignoring unsupported cipher suite: TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
Ignoring unavailable cipher suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
Ignoring unavailable cipher suite: TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA
Ignoring unavailable cipher suite: TLS_ECDH_RSA_WITH_RC4_128_SHA
Ignoring unsupported cipher suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384
Ignoring unavailable cipher suite: TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA
Ignoring unavailable cipher suite: TLS_ECDH_RSA_WITH_AES_128_CBC_SHA
Ignoring unsupported cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA256
Ignoring unavailable cipher suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
Ignoring unavailable cipher suite: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA
Ignoring unsupported cipher suite: TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384
Ignoring unsupported cipher suite: TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384
Ignoring unsupported cipher suite: TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256
Ignoring unavailable cipher suite: TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA
Ignoring unsupported cipher suite: TLS_RSA_WITH_AES_128_CBC_SHA256
Ignoring unavailable cipher suite: TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA

同时,对于已使用的证书,我看到了算法:[SHA256withRSA]。这一切意味着什么?我应该给GF添加一些密码套件吗。如果是,比哪一个好?

在我的情况下,我解决了这个问题,因为我注意到只有当客户机和javaee服务器在同一台主机上时,一切都可以工作。这就是为什么我理解并提出了正确的问题,我自己找到了答案。如果您对此感兴趣,请参阅

我相信这意味着您的服务器密钥库中没有任何私钥。由于您是服务器,并且没有RSA私钥,因此不可能完成涉及RSA密码套件的协商。DSA和ECDSA也一样。@GregS谢谢您的时间。My glassfish keystore.jks有两个条目:1)别名:glassfish实例创建日期:2014年6月4日条目类型:PrivateKeyEntry 2)别名:s1as创建日期:2014年6月4日条目类型:PrivateKeyEntry。这还不够吗?我该怎么办?@GregS我生成了到GF密钥库的DSA证书。之后,将其导出并导入到客户端信任库。之后,更改了iiop的证书别名。结果是一样的。你能解释一下你的意思吗?你有客户端的源代码吗?如果是这样,当您从Factory类获取SSLSocket时,您需要调用setEnabledCipherSuite()