<tfoot id='x0H6O'></tfoot>
  • <legend id='x0H6O'><style id='x0H6O'><dir id='x0H6O'><q id='x0H6O'></q></dir></style></legend>

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

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

      1. 使用带有 ssl 的 spring-ldap

        时间:2024-05-10

          <bdo id='0wyOU'></bdo><ul id='0wyOU'></ul>

        • <tfoot id='0wyOU'></tfoot>
              <tbody id='0wyOU'></tbody>

              <i id='0wyOU'><tr id='0wyOU'><dt id='0wyOU'><q id='0wyOU'><span id='0wyOU'><b id='0wyOU'><form id='0wyOU'><ins id='0wyOU'></ins><ul id='0wyOU'></ul><sub id='0wyOU'></sub></form><legend id='0wyOU'></legend><bdo id='0wyOU'><pre id='0wyOU'><center id='0wyOU'></center></pre></bdo></b><th id='0wyOU'></th></span></q></dt></tr></i><div id='0wyOU'><tfoot id='0wyOU'></tfoot><dl id='0wyOU'><fieldset id='0wyOU'></fieldset></dl></div>
                <legend id='0wyOU'><style id='0wyOU'><dir id='0wyOU'><q id='0wyOU'></q></dir></style></legend>
                1. <small id='0wyOU'></small><noframes id='0wyOU'>

                2. 本文介绍了使用带有 ssl 的 spring-ldap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要通过带有 SSL 的 spring-ldap 与 LDAP 服务器通信,而另一端也有一个自签名证书.

                  I need to talk to an LDAP server via spring-ldap with SSL, and the other end has a self-signed certificate no less.

                  哪位好心人可以指点我一些设置说明吗?

                  Can any kind soul please point me to some instructions for setting this up?

                  推荐答案

                  查看Spring LDAP 用于通过 HTTP(S) 连接到 LDAP 服务器的文档:

                  Check out Spring LDAP documentation for connecting to LDAP server over HTTP(S):

                  就自签名证书而言,您可以将证书链导入信任库并设置以下 VM 参数:

                  As far as self signed certificate is concerned, you can import certificate chain into a truststore and set the following VM arguments:

                  -Djavax.net.ssl.trustStore="<path to truststore file>"
                  -Djavax.net.ssl.trustStorePassword="<passphrase for truststore>"
                  

                  或在运行时覆盖信任库,例如:

                  or override the truststore at runtime like:

                  System.setProperty("javax.net.ssl.trustStore","<path to truststore file>");
                  System.setProperty("javax.net.ssl.trustStorePassword","<passphrase for truststore>");
                  

                  请记住,这两个选项都会覆盖默认的 JVM 信任库.因此,如果您使用不同的证书访问不同的站点,您可能希望将它们全部导入一个信任库.

                  Keep in mind that both options will override default JVM truststore. So if you are hitting different sites with different certs, you may want to import all of them into one truststore.

                  如果您在创建信任库文件时需要帮助,请参阅:数字证书:如何将 .cer 文件导入到 .truststore 文件中?

                  In case you need help creating truststore file, refer to this: Digital Certificate: How to import .cer file in to .truststore file using?

                  这篇关于使用带有 ssl 的 spring-ldap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:来自 Java 而不是 Firebase 控制台的 Firebase 云消息传递通知 下一篇:转换 ldap 日期

                  相关文章

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

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

                    <legend id='VfR6z'><style id='VfR6z'><dir id='VfR6z'><q id='VfR6z'></q></dir></style></legend>
                  1. <tfoot id='VfR6z'></tfoot>
                      <bdo id='VfR6z'></bdo><ul id='VfR6z'></ul>