Created
January 13, 2012 16:07
-
-
Save weavenet/1607226 to your computer and use it in GitHub Desktop.
Create x.509 Cert To Upload To AWS IAM Account
This file contains hidden or 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
#!/bin/bash | |
# Create an open ssl cert and key to upload to IAM account | |
NAME=$1 | |
if [ -z $1 ]; then | |
echo 'Plese provide a cert name.' | |
exit 1 | |
fi | |
openssl req \ | |
-x509 -nodes -days 3650 \ | |
-subj "/C=US/ST=California/L=San Diego/CN=www.intuit.com" \ | |
-newkey rsa:1024 -keyout $NAME.key -out $NAME.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment