Skip to content

chuwen95/key-manager

 
 

Repository files navigation

Key Manager

Manage data encryption keys for FISCO BCOS nodes.

Description

In FISCO BCOS, each agency should run its own key manager service. The key manager is deployed in the internal network to manage its data encryption keys.

In disk encryption. The following figure shows how the key manager manages encryption data keys.

Each node has their own dataKey and use dataKey to communicate with its encrypted space. A node does not manage its dataKey. It only has its cipherDataKey. cipherDatakey is the ciphertext of datakeyencrypted by superKey. When the node is booting, it sends cipherDataKey to key manager, and key manager decrypts the cipherDataKey using superKey and return dataKey to the node. The node stores dataKey in memory and drop it after the node is shut down.

How to use

Install dependency package

# In Centos
sudo yum install procps-ng-devel
sudo yum install curl-devel
# In ubuntu
sudo apt-get install libprocps-dev curl libcurl4-openssl-dev
# In ArchLinux
sudo pacman -S procps-ng

Build

git clone https://github.com/FISCO-BCOS/key-manager.git
cd key-manager && mkdir build && cd build

# For Centos
cmake3 .. # Notice: There are ".." behind. 
# cmake3 .. -DBUILD_GM=On  #When building "guomi" key-manager

# For ubuntu
cmake .. # Notice: There are ".." behind. 
# cmake .. -DBUILD_GM=On  #When building "guomi" key-manager

make
#The execution: "key-manager" generated.

Start

./key-manager 8150 123xyz # key-manager <port> <superkeyString>
./key-manager 8150 123xyz -g # key-manager <port> <superkeyString> <guomi version>

Check

Print info when successfully started.

[1545471609499] [TRACE][Load]key-manager started,port=8150

In disk encryption

Use key-manager in disk encryption.

Developing & Contributing

Community

By the end of 2018, Financial Blockchain Shenzhen Consortium (FISCO) has attracted and admitted more than 100 members from 6 sectors including banking, fund management, securities brokerage, insurance, regional equity exchanges, and financial information service companies. The first members include the following organizations: Beyondsoft, Huawei, Shenzhen Securities Communications, Digital China, Forms Syntron, Tencent, WeBank, Yuexiu FinTech.

  • Join our WeChat Scan and Scan

  • Discuss in Gitter

  • Read news by

  • Mail us at

License

All contributions are made under the GNU General Public License v3. See LICENSE.

About

Key manager for FISCO BCOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 77.4%
  • CMake 19.9%
  • Shell 2.7%