Created
February 22, 2021 14:19
-
-
Save voraviz/4ee940bcf9912cb55ca14e2d4a800188 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
CN=great-partner.apps.acme.com | |
echo "Create Root CA and Private Key" | |
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -subj '/O=Acme Inc./CN=acme.com' \ | |
-keyout certs/acme.com.key -out certs/acme.com.crt | |
echo "Create Certificate and Private Key for $CN" | |
openssl req -out certs/great-partner.csr -newkey rsa:2048 -nodes -keyout certs/great-partner.key -subj "/CN=${CN}/O=Great Department" | |
openssl x509 -req -days 365 -CA certs/acme.com.crt -CAkey certs/acme.com.key -set_serial 0 -in certs/great-partner.csr -out certs/great-partner.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment