Skip to content

Instantly share code, notes, and snippets.

@tensionHuang
tensionHuang / genkey.sh
Last active March 11, 2016 09:08 — forked from xcooper/genkey.sh
Generate private key, certification request, optional PEM files at once
#!/bin/sh
echo "edit this file before you execute it!!"
echo "make sure keytool and openssl commands are in PATH"
read -p "Contiune?" ANS
read -p "give me CN(CommonName, EX:www.xxx.com.tw): " CN
read -p "give me OU(OrganizationalUnit, EX:Information Center): " OU
read -p "give me O(Organization, EX: FBI): " O
read -p "give me L(Location, EX:Taipei): " L
read -p "give me ST(StateOrProvinceName, EX:Taipei): " ST
read -p "give me C(Country,EX:TW): " C