Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save laszlomiklosik/4f1f7c3eecaf369341d9 to your computer and use it in GitHub Desktop.
Save laszlomiklosik/4f1f7c3eecaf369341d9 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment