Skip to content

Instantly share code, notes, and snippets.

@weavenet
Created January 13, 2012 16:07
Show Gist options
  • Save weavenet/1607226 to your computer and use it in GitHub Desktop.
Save weavenet/1607226 to your computer and use it in GitHub Desktop.
Create x.509 Cert To Upload To AWS IAM Account
#!/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