]> WPIA git - nre.git/blobdiff - commonFunctions.bash
upd: extract Distinguished Name fields, document config
[nre.git] / commonFunctions.bash
index 36ffa19fad613285b80585cc1a3f0f39fe278020..a433fbea71e3158793cdf9bf22f0704c9b1d260d 100644 (file)
@@ -3,7 +3,7 @@
 
 genKey(){ #subj, internalName
     openssl genrsa -out $2.key ${KEYSIZE}
-    openssl req -new -key $2.key -out $2.csr -subj "$1/O=Test Environment CA Ltd./OU=Test Environment CAs/C=AU"
+    openssl req -new -key $2.key -out $2.csr -subj "$1/O=$ORGANIZATION/OU=$ORGANIZATIONAL_UNIT/C=$COUNTRY"
 
 }
 
@@ -49,4 +49,3 @@ findLibfaketime() {
     printf >&2 'error: no libfaketime found\n'
     exit 1 # unfortunately, this will only exit the $() subshell
 }
-