The script doesn't check whether the rootCA.crt file exists before trying to concatenate it with the wildcard.crt file.