$ 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
Created
May 10, 2018 10:26
-
-
Save Maecenas/7cf52629559cbe29bc407d1123998add to your computer and use it in GitHub Desktop.
Generate SSL Cert
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment