Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save skiptomyliu/26e1d244686e849bd6f150a86b088d3f to your computer and use it in GitHub Desktop.
Save skiptomyliu/26e1d244686e849bd6f150a86b088d3f to your computer and use it in GitHub Desktop.
LDAP JXplorer trust self signed certificate workaround
2 easy steps:
1) echo -n | openssl s_client -connect AD_SERVER:AD_SERVER_PORT | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ldapserver.pem
2) keytool -import -trustcacerts -file ldapserver.pem -alias ALIAS_GOES_HERE -keystore /Users/.../Apps/jxplorer-3.3.1-osx/jxplorer-3.3.1.app/Contents/Resources/security/cacerts
OR
Via JXPlorer UI, go to menu Security -> Trusted Servers and CAs. Import the new ldapserver.pem file. Default password "changeit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment