Skip to content

Instantly share code, notes, and snippets.

@teopost
Created October 5, 2021 07:32
Show Gist options
  • Save teopost/84cc96e966ed3d303e330832ea09885c to your computer and use it in GitHub Desktop.
Save teopost/84cc96e966ed3d303e330832ea09885c to your computer and use it in GitHub Desktop.
#!/bin/sh
MakeCert(){
domain=$1
openssl req -x509 -nodes -days 9000 -newkey rsa:2048 -keyout ${domain}.key -out ${domain}.crt \
-subj "/C=IT/ST=Italy/L=Rimini/O=Acme srl/OU=IT Department/CN=${domain}"
}
MakeCert uatstage.acme.it
MakeCert uatlive.acme.it
MakeCert uatmobile.acme.it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment