Rate This Document
Findability
Accuracy
Completeness
Readability

Exporting CSR Files

The following commands are used to export the CSR file service.csr to the directory on the specified CA server for certificate signing. The name of the file exported to the remote server is mac_address.crt.

To obtain the MAC address, run ifconfig | grep ether | awk 'NR==1' | awk '{print $2}'. An example command output is 68:4x:xx:xx:xx:aa, and the character string after the colons (:) are deleted is the MAC address.

  • On a host node:

    Run the following command to export the CSR file:

    /home/omm/haf-install/haf-host/tools/haf-tool cert --server <ca_server_ip> --path <ca_server_path>--user <ca_server_user> --export

    After the command is executed, manually enter the password for logging in to the remote server. The CSR file generated on the remote CA server is mac_addresshost.crt, for example, 684xxxxxxxf2host.crt.

  • On an offload node:

    Run the following command to export the CSR file:

    /home/omm/haf-install/haf-target/tools/haf-tool cert --server <ca_server_ip> --path <ca_server_path> --user <ca_server_user> --export

    After the command is executed, manually enter the password for logging in to the remote server. The CSR files generated on the remote CA server are mac_addressdaemon.crt and mac_addresshaf_user.crt, for example, 684xxxxxxxf2daemon.crt and 684xxxxxxxf2haf_user.crt.

Table 1 Parameter description

Option

Description

Mandatory

--server <ca_server_ip>

CA server IP address

Yes

--path <ca_server_path>

Path for the CA server to issue certificates

Yes

--user <ca_server_user>

User name for logging in to the CA server

Yes

--export

Keywords for exporting the CSR file

Yes