File tree 3 files changed +44
-3
lines changed 3 files changed +44
-3
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ Shell> peer chaincode invoke -o orderer.example.com:7050 -C $CHANNEL_NAME -n e
175
175
176
176
- 一、基础环境的搭建步骤
177
177
- 1.1 [hyperledger1.0分布式环境搭建](doc/1.1hyperledger1.0分布式环境搭建.md)
178
-
178
+ - 1.2 [ Fabric-CA1.0模块的搭建与使用 ] ( 1.2、Fabric-CA1.0模块的搭建与使用.md )
179
179
180
180
181
181
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ Shell> git clone https://github.com/hyperledger/fabric-samples.git # 下载演
24
24
[root@localhost fabric]# tree
25
25
.
26
26
└── bin
27
- ├── configtxgen
27
+ ├── configtxgen # 生成组织配置文件以及初始创世纪块时需要用到
28
28
├── configtxlator
29
- ├── cryptogen
29
+ ├── cryptogen # 生成超级账本中组织结构管理信任关系证书的工具,在初期实验是比较使用到,后期上线面对联盟链场景中拓展则需要专业的CA组件
30
30
├── get-byfn.sh
31
31
├── get-docker-images.sh
32
32
├── orderer # 排序服务实现二进制文件
@@ -36,6 +36,10 @@ Shell> git clone https://github.com/hyperledger/fabric-samples.git # 下载演
36
36
## 三、分布式环境搭建步骤
37
37
38
38
39
+ ### 3.1、
40
+
41
+
42
+
39
43
40
44
## 四、参考资料
41
45
Original file line number Diff line number Diff line change
1
+ 本篇主要介绍` Fabric-CA ` 模块的搭建与使用,本篇使用的版本是` Fabric-CA1.0.6 ` 版本,由于官方的项目还处在不断的快速迭代当中所以建议在配置和使用时还是按照指定的版本来使用,以免遇见不必要的问题
2
+
3
+
4
+ ---------------------
5
+
6
+ # 一、Fabric-CA模块基本作用与功能构架
7
+
8
+
9
+ # 二、基本环境的准备与部署
10
+
11
+ ## 2.1、安装依赖包以及MySQL数据库
12
+
13
+ 通过官网的介绍我们可以知道,默认情况下` Fabric-CA ` 模块启动时默认使用` sqllite ` 作为存储元数据的数据库,但是在实际的生产过程中,我们不会使用` sqllite ` 作为生产环境的库进行使用的,一般情况下会配置为` MySQL ` 或者` PG ` ,此处本文以` MySQL ` 为例进行配置,笔者在官方的` Github ` 中为找到官方编译好的二进制包,所以在部署前,我们需要需要自行编译` fabric-ca ` 的二进制包,此处需要一点点` Go ` 语言的基础支持,了解什么是` GOPATH ` 等,关于` GO ` 的编译环境大家可以搜索其他资料,此处不在赘述。
14
+ ``` bash
15
+ Shell> yum install libtool libtool-ltdl-devel # 安装编译时依赖包
16
+ Shell> cd ${GOPATH} /src
17
+ Shell> mkdir -p github.com/hyperledger # 创建编译源码的目录位置,网上很多的资料或者官方都会指导使用go get -u 的方式,但是此处我们只需要使用fabric-ca 1.0.6的版本,所以此处我们只能先clone一下源码然后使用git checkout我们想要的版本
18
+ Shell> cd github.com/hyperledger
19
+ Shell> git clone https://github.com/hyperledger/fabric-ca.git
20
+ Shell> git checkout v1.0.6 # 检出我们想要的版本,此处的方式不是很优雅,应该加上-b参数新建一个分支去做,但是我们又不修改源码所以不优雅就不优雅了
21
+ Shell> cd fabric-ca/cmd/fabric-ca-server
22
+ Shell> go install # 编译安装fabric-ca-server,编译完成后可运行的二进制文件在$GOPATH/bin目录下
23
+ Shell> cd ../fabric-ca-server
24
+ Shell> go install # 编译fabric-ca-client
25
+ ```
26
+
27
+
28
+
29
+
30
+
31
+ # 三、Fabric-CA的部署
32
+
33
+
34
+
35
+
36
+
37
+
You can’t perform that action at this time.
0 commit comments