#!/bin/bash # gen_csr.sh - Generate SSL Certificates for a host name. # Country Name (2 letter code) [GB]:. # State or Province Name (full name) [Berkshire]:. # Locality Name (eg, city) [Newbury]:. # Organization Name (eg, company) [My Company Ltd]:. # Organizational Unit Name (eg, section) []:. # Common Name (eg, your name or your server's hostname) []:. # Email Address []:. # A challenge password []: # An optional company name []: COUNTRY="US"; STATE="NJ"; LOCALITY="Montclair"; ORGNAME="Gluejar, Inc."; ORGUNIT=""; CNAME="*.unglue.it"; EMAIL="unglueit@ebookfoundation.org"; PASSWORD=""; OPTION_COMPANY_NAME=""; echo "$COUNTRY $STATE $LOCALITY $ORGNAME $ORGUNIT $CNAME $EMAIL $PASSWORD $OPTIONAL_COMPANY_NAME" | openssl req -new -key server.key -out unglue.it.wildcard.csr