• <tfoot id='FDBXA'></tfoot>
        <bdo id='FDBXA'></bdo><ul id='FDBXA'></ul>

      1. <legend id='FDBXA'><style id='FDBXA'><dir id='FDBXA'><q id='FDBXA'></q></dir></style></legend>

        <small id='FDBXA'></small><noframes id='FDBXA'>

      2. <i id='FDBXA'><tr id='FDBXA'><dt id='FDBXA'><q id='FDBXA'><span id='FDBXA'><b id='FDBXA'><form id='FDBXA'><ins id='FDBXA'></ins><ul id='FDBXA'></ul><sub id='FDBXA'></sub></form><legend id='FDBXA'></legend><bdo id='FDBXA'><pre id='FDBXA'><center id='FDBXA'></center></pre></bdo></b><th id='FDBXA'></th></span></q></dt></tr></i><div id='FDBXA'><tfoot id='FDBXA'></tfoot><dl id='FDBXA'><fieldset id='FDBXA'></fieldset></dl></div>
      3. 如何在 Java LDAP 连接上指定 SSL/TLS 版本?

        How to specify SSL/TLS version on Java LDAP connection?(如何在 Java LDAP 连接上指定 SSL/TLS 版本?)

        • <small id='dB7o5'></small><noframes id='dB7o5'>

          <tfoot id='dB7o5'></tfoot>
          <legend id='dB7o5'><style id='dB7o5'><dir id='dB7o5'><q id='dB7o5'></q></dir></style></legend>
        • <i id='dB7o5'><tr id='dB7o5'><dt id='dB7o5'><q id='dB7o5'><span id='dB7o5'><b id='dB7o5'><form id='dB7o5'><ins id='dB7o5'></ins><ul id='dB7o5'></ul><sub id='dB7o5'></sub></form><legend id='dB7o5'></legend><bdo id='dB7o5'><pre id='dB7o5'><center id='dB7o5'></center></pre></bdo></b><th id='dB7o5'></th></span></q></dt></tr></i><div id='dB7o5'><tfoot id='dB7o5'></tfoot><dl id='dB7o5'><fieldset id='dB7o5'></fieldset></dl></div>

              <bdo id='dB7o5'></bdo><ul id='dB7o5'></ul>

                    <tbody id='dB7o5'></tbody>
                  本文介绍了如何在 Java LDAP 连接上指定 SSL/TLS 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 java LDAP 客户端,但我仍然缺少一些关于如何正确执行此操作的信息或知识.

                  Im working on an java LDAP-Client and I'm still missing some information or knowledge on how to do this properly.

                  我的代码如下所示:

                  LdapContext ctx = null;
                  Hashtable<String, String> env = new Hashtable <String, String>();
                  try{
                      env.clear();
                      env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
                      env.put(Context.PROVIDER_URL, "url");
                      env.put(Context.SECURITY_PRINCIPAL, "user");
                      env.put(Context.SECURITY_CREDENTIALS, "password");
                      env.put(Context.SECURITY_PROTOCOL, "ssl");
                      env.put("java.naming.security.ssl.ciphers", "SSL_RSA_EXPORT_WITH_RC4_40_MD5");
                      ctx = new InitialLdapContext(env, null);
                  } catch(NamingException nex) {
                      // error handling
                  }
                  

                  此时发生以下事情:

                  • 在调试 ssl 连接时,我看到我的 LDAP 服务器和我的程序之间建立了 TLSv1 连接.
                  • 我为我的客户看到以下内容ssl 握手时的服务器:*** ClientHello, TLSv1.2*** ServerHello, TLSv1

                  我现在缺少的东西:

                  • 我添加了一个要包含的密码,但我在客户的问候消息中提供的支持密码列表中没有看到它
                  • 我没有在他的 hello 消息中指定我的客户提供 TLS1.2,该设置来自哪里?
                  • 我希望能够确定自己是要使用 TLS 还是 SSL,以及要使用哪个版本的 TLS 或 SSL,我该如何实现?(所以我可以例如只允许 TLS 1.1 和 1.2)

                  推荐答案

                  先扫描你的服务器,然后再把时间浪费在可能根本不起作用的东西上.使用:https://github.com/rbsec/sslscan

                  Scan you server first before wasting your time for stuff likely not work at all. use: https://github.com/rbsec/sslscan

                  您的服务器可能仅支持 TLS 1.0.

                  It might be possible that your server support TLS 1.0 only.

                  这篇关于如何在 Java LDAP 连接上指定 SSL/TLS 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

                      <i id='lA1Y0'><tr id='lA1Y0'><dt id='lA1Y0'><q id='lA1Y0'><span id='lA1Y0'><b id='lA1Y0'><form id='lA1Y0'><ins id='lA1Y0'></ins><ul id='lA1Y0'></ul><sub id='lA1Y0'></sub></form><legend id='lA1Y0'></legend><bdo id='lA1Y0'><pre id='lA1Y0'><center id='lA1Y0'></center></pre></bdo></b><th id='lA1Y0'></th></span></q></dt></tr></i><div id='lA1Y0'><tfoot id='lA1Y0'></tfoot><dl id='lA1Y0'><fieldset id='lA1Y0'></fieldset></dl></div>

                          <tbody id='lA1Y0'></tbody>

                        <legend id='lA1Y0'><style id='lA1Y0'><dir id='lA1Y0'><q id='lA1Y0'></q></dir></style></legend>
                          <tfoot id='lA1Y0'></tfoot>
                        1. <small id='lA1Y0'></small><noframes id='lA1Y0'>

                          • <bdo id='lA1Y0'></bdo><ul id='lA1Y0'></ul>