Skip to content

Instantly share code, notes, and snippets.

@espacioAntonio
Created February 17, 2019 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save espacioAntonio/c3879d6b5e6e3fd6c9b2aaa3772aef29 to your computer and use it in GitHub Desktop.
Save espacioAntonio/c3879d6b5e6e3fd6c9b2aaa3772aef29 to your computer and use it in GitHub Desktop.
# https://stackoverflow.com/a/52944797
mkdir -p ./etc/cas
keytool -genkeypair -alias cas -keyalg RSA \
-keypass changeit -storepass changeit \
-keystore ./etc/cas/thekeystore \
-dname "CN=localhost.xxx.com.tw,OU=xxx,OU=xxx,C=TW" \
-ext SAN="dns:localhost,ip:127.0.0.1,dns:`hostname`"
For Docker
docker cp ./etc/cas/thekeystore <CONTAINER_NAME>:/etc/cas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment