NetScaler: "Cannot create output file already exists" Error When Generating CSR

book

Article ID: CTX696946

calendar_today

Updated On:

Description

Symptoms

  • Attempting to create a CSR via the NetScaler GUI results in the error message: "Cannot create output file already exists."

  • Issue occurs on NetScaler VPX (On-Prem / Hypervisor platforms).

Cause

The file name specified in the CSR creation form matches an existing .csr or .key file already located in the /nsconfig/ssl/ directory. NetScaler prevents overwriting existing SSL files directly through the wizard.

Resolution

To resolve this issue, you must either remove the conflicting file or use a new, unique file name for the CSR.

Method 1: Delete the Conflicting File via GUI (Recommended)

  1. Navigate to Traffic Management > SSL > SSL Files.

  2. Go to the CSR tab (or Keys tab, depending on which file name conflicts).

  3. Locate the existing file that matches the name you entered in the wizard.

  4. Select the file and click Delete.

  5. Retry generating the CSR with your preferred name.

Method 2: Specify a Unique File Name

  • Re-open the Create CSR wizard.

  • Provide a new, distinct name in the Certificate Request File Name field (e.g., append the current year or version: domain_2026.csr).

Method 3: Delete Conflicting Files via CLI (Optional)

  1. Connect to the NetScaler appliance via SSH using an administrative account.

  2. Change directory to the SSL configuration path:

    Bash
     
    cd /nsconfig/ssl
    
  3. Identify and remove the duplicate .csr or .key file:

    Bash
     
    rm old_filename.csr old_filename.key
    
  4. Return to the GUI and proceed with creating your CSR.

Issue/Introduction

When generating a Certificate Signing Request (CSR) on NetScaler, the operation fails with the error "Cannot create output file already exists." This happens when a file with the target name already exists in the local SSL directory (/nsconfig/ssl/).