diff --git a/cmake_targets/tools/build_helper b/cmake_targets/tools/build_helper index 0131cbd71dd395a75ca1f3e8985061a2ad6739d3..8db12f8b0c454ab06ea29d924fb5653faa73cf44 100755 --- a/cmake_targets/tools/build_helper +++ b/cmake_targets/tools/build_helper @@ -150,7 +150,8 @@ make_certs(){ echo_warning "erase all existing certificates as long as the CA is regenerated" $SUDO rm -f $certs_dir/*.pem $SUDO mkdir -p $certs_dir/demoCA/ - $SUDO sh -c "echo 01 > $certs_dir/demoCA/index.txt" + $SUDO touch $certs_dir/demoCA/index.txt + $SUDO sh -c "echo 01 > $certs_dir/demoCA/serial" # CA self certificate $SUDO openssl req -new -batch -x509 -days 3650 -nodes -newkey rsa:1024 -out cacert.pem -keyout cakey.pem -subj /CN=$fqdn/C=FR/ST=PACA/L=Aix/O=Eurecom/OU=CM