config_mindie_server_tls_cert.py

Script Function

This script is used to manage certificates when HTTPS is enabled for EndPoint. It provides the following functions:

A CA certificate is used to verify the validity of other certificates. A server certificate is used to verify the identity of a server in SSL/TLS communication.

Parameters

Parameter Type

Parameter

Description

Location parameter

<project_path>

Software package installation path.

Location parameter

<sub_command>

Subcommand type. The value can be gen_cert for generating a certificate, import_ca for importing a CA certificate, delete_ca for deleting a CA certificate, import_cert for importing a service certificate and private key, delete_cert for deleting a service certificate and private key, import_crl for importing and updating a CRL, query for querying information about an imported certificate, restore_ca for restoring a CA certificate, and restore_cert for restoring a service certificate. For details about how to use the subcommands, see Usage Guidelines.

Option parameter

--business

Type of the service that requires certificate management. The default type is HTTPS certificate. You can set it to management or grpc, corresponding to the HTTPS management certificate or gRPC certificate, respectively.

Option parameter

--ip

IP address of a certificate. If no certificate is set, use None.

Certificate Specifications

Prerequisites

# Install missing packages.
pip3 install pyOpenSSL

# Enable logging.
export MINDIE_LOG_TO_FILE=1
export MINDIE_LOG_TO_STDOUT=1

# Configure logs.
export MINDIE_LOG_LEVEL=INFO
export MINDIE_LOG_PATH=~/mindie/log   # Folder for storing logs

Usage Guidelines

  • You are advised not to use the same security certificate for HTTPS and gRPC. Using the same certificate may lead to significant network security risks.
  • When importing certificates, ensure that the script permissions required for CA certificates, service certificates, private key certificates, and CRL certificates are 600, 400, and 600, respectively.