(this looks out-of-dated)
This is not needed anymore since ldap.freebsd.org is using letsencrypt and the CA information is in base now
For ldaps:// , it may be necessary to add the certificate associated with the LDAP server to the JDK's list of trusted certificates. This is especially true if the certificate is self-signed or not built-in JDK. If you don't do this, then authentication errors will occur.
If this is necessary, then you should:
keytool -import -trustcacerts -alias gandistandardsslca2 -file GandiStandardSSLCA2.pem -keystore $JENKINS_HOME/cacerts
(Default password for openjdk certificate store is: changeit)
jenkins_java_opts="-Djavax.net.ssl.trustStore=/usr/local/jenkins/cacerts"