add batch for easyrsa command

This commit is contained in:
arthur 2025-10-18 21:25:38 +07:00
parent c4fa268580
commit 10f8e81d92

View File

@ -22,7 +22,7 @@ def generate_client_config(username: str):
# Step 1: Generate the client certificate # Step 1: Generate the client certificate
print(f"Generating certificate for user: {username}...") print(f"Generating certificate for user: {username}...")
try: try:
command = ["./easyrsa", "build-client-full", username, "nopass"] command = ["./easyrsa", "--batch", "build-client-full", username, "nopass"]
process = subprocess.run( process = subprocess.run(
command, command,
cwd=easyrsa_dir, cwd=easyrsa_dir,