Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Configuring IoTDB Data Encryption During Transmission

Updated on 2024-11-29 GMT+08:00

Scenario

In security scenarios, IoTDB data transmission encryption is required to ensure data security.

NOTE:

Data transmission encryption affects performance. Therefore, you are not advised to enable this function in scenarios that require high performance.

Prerequisites

  • Service users of each component are created by the administrator as required. For details, see Creating a User. In security mode, machine-machine users need to download the keytab file. For details, see Exporting an Authentication Credential File. A human-machine user must change the password upon the first login.
  • The IoTDB client has been installed in a directory, for example, /opt/client. Choose Cluster > Services > IoTDB then choose More > Download Client. In the dialog box that is displayed, select Save to Path. The generated file is saved to the /tmp/FusionInsight-Client directory on the active management node by default.

Procedure

  1. Perform operations on the server.

    1. Log in to FusionInsight Manager and choose Cluster > Services > IoTDB. Click the Configurations tab.
    2. Modify the following parameters:
      • Search for SSL_ENABLE in the upper right corner of the page and change its value to true.
      • Search for iotdb_server_kerberos_qop in the upper right corner of the page and change its value to auth-conf.
    3. Click Save. In the Save Configuration dialog box, click OK.

      When Operation succeeded is displayed, click Finish.

    4. Click the Dashboard tab. Choose More > Restart Service. Wait until the service is restarted.

  2. Perform operations on the client.

    1. Log in to the active management node as user root and run the following command to switch to the client installation directory, for example, /opt/client:

      cd /opt/client

    2. Run the following command to configure environment variables:

      source bigdata_env

    3. (Optional) Run the following command to authenticate the current user if Kerberos authentication is enabled for the cluster. If Kerberos authentication is not enabled, skip this step.

      kinit Component service user

    4. Run the following commands to generate the truststore.jks file using the ca.crt certificate file in the root directory of the client:

      cd /tmp/FusionInsight-Client/FusionInsight_Cluster_*_IoTDB_ClientConfig

      keytool -noprompt -import -alias myservercert -file ca.crt -keystore truststore.jks

    5. Run the following command to copy the generated truststore.jks file to the client installation directory, for example, /opt/client/IoTDB/iotdb/conf.

      cp truststore.jks /opt/client/IoTDB/iotdb/conf

    6. Run the following command to switch to the directory where the IoTDB client running script is stored:

      cd /opt/client/IoTDB/iotdb/sbin

    7. Run the vim start-cli.sh command to compile the start-cli.sh script and add iotdb_ssl_truststore=/opt/client/IoTDB/iotdb/conf/truststore.jks and iotdb_ssl_enable=true to the startup parameter exec "$JAVA" -cp "$JAVA_CLASSPATH" "$JAVA_MAIN_CLASS" $PARAMETERS in the script.
      exec "$JAVA" -Diotdb_ssl_truststore=/opt/client/IoTDB/iotdb/conf/truststore.jks -Diotdb_ssl_enable=true -cp "$JAVA_CLASSPATH" "$JAVA_MAIN_CLASS" $PARAMETERS
    8. Run the following command to log in to the client. If the login is successful, data transmission encryption is enabled for IoTDB.

      ./start-cli.sh -h Service IP address of node where the IoTDBServer instance is located -p IoTDBServer RPC port

      NOTE:
      • You can also log in to the client by running the ./start-cli.sh -h Service IP address of the node where the IoTDBServer instance is located -p IoTDBServer RPC port -u Service username -pw Service user password command.
      • To view the service IP address of the node where the IoTDBServer instance is located, log in to FusionInsight Manager, choose Cluster > Services > IoTDB, and click the Instance tab.
      • The default RPC port is 22260. To obtain the port number, choose Cluster > Services > IoTDB, click Configurations then All Configurations, and search for IOTDB_SERVER_RPC_PORT.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback