Skip to content

Instantly share code, notes, and snippets.

@ilyas-it83
Created May 1, 2021 06:52
Show Gist options
  • Save ilyas-it83/8ff480acc5493cd70391bc12fc97f23f to your computer and use it in GitHub Desktop.
Save ilyas-it83/8ff480acc5493cd70391bc12fc97f23f to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in {1..5}
do
echo "creating $i certificate stared"
step ca certificate sampledev$i sampledev$i.crt sampledev$i.key --provisioner-password-file password.txt -f
openssl pkcs12 -export -out sampledev$i.pfx -inkey sampledev$i.key -in sampledev$i.crt -password pass:yourpassword
echo "creating $i certificate completed"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment