Rate This Document
Findability
Accuracy
Completeness
Readability

Exporting CSR Files

Export the CSR files of host nodes (server1, agent1, agent2, and agent3) to the CA server.

  1. Select all host nodes and click Configure Service.

  1. Select Custom and click Next.

  1. Select Command Execution and click Add a Task.

  1. Set task 1 parameters and click Save.
    Table 1 Parameter description

    Parameter

    Description

    Task Name

    Exporting CSR files of host nodes

    Task Description

    Exporting the key file of the current host node to the CA server

    Run Directory

    /

    Run Command

    echo password | /opt/haf-host/tools/haf-tool cert --server ca_server_ip --path ca_server_path --user ca_server_user --export --host

    NOTE:

    The script parameters are described as follows:

    • password: Password of the CA server for issuing certificates.
    • ca_server_ip: IP address of the CA server for issuing certificates.
    • ca_server_path: Certificate issuing path of the CA server.
    • ca_server_user: User name for logging in to the CA server for issuing certificates.
    • "echo password |" is a temporary method used by SmartKit due to interactive bugs. If you use the CLI tool, you do not need to add it.

    Whether to Check Return Code

    Yes

    Expected Return Code

    0