部署后系统抛出异常:
org.apache.directory.ldap.client.api.exception.InvalidConnectionException: SSL handshake failed.
at org.apache.directory.ldap.client.api.LdapNetworkConnection.writeRequest(LdapNetworkConnection.java:4190) ~[?:?]
at org.apache.directory.ldap.client.api.LdapNetworkConnection.bindAsync(LdapNetworkConnection.java:1314) ~[?:?]
at org.apache.directory.ldap.client.api.LdapNetworkConnection.bind(LdapNetworkConnection.java:1212) ~[?:?]
at org.apache.directory.ldap.client.api.AbstractLdapConnection.bind(AbstractLdapConnection.java:127) ~[?:?]
at org.apache.directory.ldap.client.api.AbstractLdapConnection.bind(AbstractLdapConnection.java:112) ~[?:?]
怀疑证书无效或者过期,去到应用端服务器,检查证书有效期,果然是证书过期。
$ openssl x509 -noout -dates -in ca.txt
notBefore=Mar 10 12:00:00 2018 GMT
notAfter=Mar 10 12:00:00 2023 GMT
解决方案:
重新生成证书后部署