2013-01-04 19:16:43 +00:00
|
|
|
#!/bin/bash
|
2013-12-09 23:32:08 +00:00
|
|
|
# gen_csr.sh - Generate SSL Certificates for a host name.
|
2013-01-04 19:16:43 +00:00
|
|
|
|
|
|
|
# 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="";
|
2013-12-09 23:32:08 +00:00
|
|
|
CNAME="*.unglue.it";
|
2013-01-04 19:16:43 +00:00
|
|
|
EMAIL="support@gluejar.com";
|
|
|
|
PASSWORD="";
|
|
|
|
OPTION_COMPANY_NAME="";
|
|
|
|
|
|
|
|
echo "$COUNTRY
|
|
|
|
$STATE
|
|
|
|
$LOCALITY
|
|
|
|
$ORGNAME
|
|
|
|
$ORGUNIT
|
|
|
|
$CNAME
|
|
|
|
$EMAIL
|
|
|
|
$PASSWORD
|
2013-12-09 23:32:08 +00:00
|
|
|
$OPTIONAL_COMPANY_NAME" | openssl req -new -key server.key -out unglue.it.wildcard.csr
|
2013-01-04 19:16:43 +00:00
|
|
|
|