Check Serial in bootstrap
[aaf/authz.git] / conf / CA / bootstrap.sh
index 20093ee..5618124 100644 (file)
@@ -8,6 +8,9 @@ chmod 700 private
 chmod 755 certs newcerts
 touch index.txt
 echo "unique_subject = no" > index.txt.attr
+if [ ! -e ./serial ]; then
+  echo '01' > ./serial
+fi
 
 NAME=aaf.bootstrap
 FQDN=$(hostname -f)