Created
February 17, 2019 14:08
-
-
Save espacioAntonio/c3879d6b5e6e3fd6c9b2aaa3772aef29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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