Importing the HAF Certificate
Go to the tool installation directory and run the following command to export the CSR file. After that, enter the password of the remote server.
./tools/haf-tool cert --server <ca_server_ip> --path <ca_server_path> --user <ca_server_user> --import
The service certificate and the CA server root certificate are imported.
crt_import.sh is the internal script for importing a certificate. It is stored in haf-tool/scripts of the installation directory and is invoked by haf_tool. The internal invoking commands are as follows:
cd tools/scripts
./crt_import.sh -i <ip_addr> -p <remote_path> -u <user_name> -t <cert_path>
After the command is executed, manually enter the password for logging in to the remote server.
Option |
Description |
Mandatory |
|---|---|---|
-i <ip_addr> |
IP address of the server where the CA node is located. It entered by the user and imported using haf_tool. |
Yes |
-p <remote_path> |
Path for storing the CA node certificate. It entered by the user and imported using haf_tool. |
Yes |
-u <user_name> |
User name of the server where the CA node is located. It entered by the user and imported using haf_tool. |
Yes |
-t <cert_path> |
Path for storing the certificate. haf-tool uses the cert_path parameter in the configuration file to invoke this path. |
Yes |
crt_import.sh is an internal tool of the software. You are not advised to invoke it independently.