summaryrefslogtreecommitdiff
path: root/configure.sh
blob: 54e95779a19135d34b0dac98e498e368f3760545 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/echo This is intended to be run from within scripts as this as .

export     CA="omgca"    # The short Certificate Authority name
export EXPIRE="3650"     # Number of days until expiration for all certificates
export      C="US"       # Two-letter country code
export     ST="Oregon"   # State or province
export      L="Portland" # Locality
export      O="Rayhawk Foundation For World Domination" # Organization
export     OU="Ministry of Propaganda" # Organizational Unit
export     CN="Joe Rayhawk" # Common Name
export      E="jrayhawk+ssl@omgwallhack.org" # Email; used in certs and for From: and CC: in ./mailcert.sh usage

export OPENSSL_CONFIG="openssl.cnf" # For advanced customization (not suggested)
#export EKU="clientAuth, serverAuth" # we try to dynamically determine this in signcsr.sh
export EMAIL_DEFAULT_DOMAIN="omgwallhack.org" # ./mailcert.sh uses this as a user's domain if nothing more obvious is available

if [ -e ./local.cfg ]; then
  . ./local.cfg # dash is finnicky about how paths for sourcing work
fi

if [ $SUPPLEMENTARY_CONFIG ]; then
  if [ -e ./"$SUPPLEMENTARY_CONFIG" ]; then
    . ./"$SUPPLEMENTARY_CONFIG" # dash is finnicky about how paths for sourcing work
  elif [ -e /"$SUPPLEMENTARY_CONFIG" ]; then
    . /"$SUPPLEMENTARY_CONFIG"
  else
    echo "$SUPPLEMENTARY_CONFIG" does not exist
    exit 1
  fi
fi