]> WPIA git - nre.git/blobdiff - generateInfra.sh
move generated to own folder + permissions
[nre.git] / generateInfra.sh
index e6b74fb944dbd8126ad071e20159494595c95eee..012e6b70feb8e63c87c0f5d2d96bdf78351e3815 100755 (executable)
@@ -8,9 +8,11 @@ year=$1
 . structure
 . commonFunctions
 
+cd generated
+
 CRL="
-crlDistributionPoints=URI:http://g2.crl.cacert.org/g2/$year/env-1.crl
-authorityInfoAccess = OCSP;URI:http://g2.ocsp.cacert.org,caIssuers;URI:http://g2.crt.cacert.org/$year/env-1.crt"
+crlDistributionPoints=URI:http://g2.crl.${DOMAIN}/g2/$year/env-1.crl
+authorityInfoAccess = OCSP;URI:http://g2.ocsp.${DOMAIN},caIssuers;URI:http://g2.crt.${DOMAIN}/g2/$year/env-1.crt"
 
 cat <<TESTCA > req.cnf
 basicConstraints = critical,CA:false