无法在spring-ldap客户端和apacheds之间build立TLS连接
我的客户端代码已经使用LDAP协议针对embedded式ApacheDS 1.5.5进行了成功testing。 在使用Apache DS 2.0.0-M23的端到端testing中,我成功地使用OpenLDAPbuild立了LDAPS连接。 但是,我在使用基于Java的spring-ldapbuild立LDAPS连接时遇到了问题。 我的代码基于spring-ldap。 深入挖掘TLS或LDAPS的任何提示将真正赞赏。 版本 Oracle JDK:Java版本“1.8.0_92”和JCE Unlimited Strength Jurisdiction策略文件。 Spring-Ldap版本:2.3.1.RELEASE Spring版本:4.3.2.RELEASE 部署在Docker容器中的Apache DS版本:2.0.0-M23。 创build公共证书和私钥 基于: ApacheDS启用SSL 导出在LDAP服务器上使用的证书: [jlee@iel-jlee-lt1 security]$ keytool -genkey -keyalg "RSA" -dname "cn=tangotelecom.com, ou=dev, o=tangotelecom, c=IE" -alias tangotelecom -keystore tangotelecom.ks -storepass secret -validity 730 Enter key password for <tangotelecom> (RETURN if same as keystore password): [jlee@iel-jlee-lt1 security]$ keytool […]