简体   繁体   English

weblogic ssl 通信有可能接受所有证书吗?

[英]It is possible that a weblogic ssl communication accept all certificates?

I want to implement a client application to get some information of a weblogic server.我想实现一个客户端应用程序来获取 weblogic 服务器的一些信息。 The communication has to be secure because the weblogic server is configure secure.通信必须是安全的,因为 weblogic 服务器被配置为安全的。

Now I'm able to establish a ssl communication.现在我可以建立 ssl 通信。 With following settings:使用以下设置:

System.setProperty("weblogic.security.TrustKeyStore", "CustomTrust");
System.setProperty("weblogic.security.CustomTrustKeyStoreFileName", tmpTruststore.getAbsolutePath());
System.setProperty("weblogic.security.CustomTrustKeyStorePassPhrase", "somePW");
System.setProperty("weblogic.security.CustomTrustKeyStoreType",  "JKS");

It is possible that a weblogic ssl communication accept all certificates? weblogic ssl 通信有可能接受所有证书吗? It would make the application more convenient in handling.这将使应用程序在处理上更加方便。 I think of a solution similar to the override of X509TrustManager.我想到了一个类似于覆盖X509TrustManager的解决方案。 If so, can someone give me an example?如果是这样,有人可以举个例子吗? Otherwise can you give me an answer with the reasons?否则你能告诉我原因的答案吗?

No it is not possible.不,这是不可能的。 Having an SSL connection between two entities in which one accepts all data defeats the purpose of having a secure connection.在接受所有数据的两个实体之间建立 SSL 连接违背了建立安全连接的目的。 Either use a non-SSL port for convenience or configure the trust stores for security.为方便起见使用非 SSL 端口或配置信任存储以确保安全。 Can't have both.不能两者兼得。 Sorry.对不起。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM