Skip to content

Instantly share code, notes, and snippets.

@Maecenas
Created May 10, 2018 10:26
Show Gist options
  • Save Maecenas/7cf52629559cbe29bc407d1123998add to your computer and use it in GitHub Desktop.
Save Maecenas/7cf52629559cbe29bc407d1123998add to your computer and use it in GitHub Desktop.
Generate SSL Cert
$ openssl s_client -connect gitlab.miotech.com:443 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > public.crt
$ echo "yes" | keytool -import -alias MTGitlab -keystore /usr/lib/jvm/java-8-oracle/jre/lib/security/cacerts -file /root/public.crt -storepass changeit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment