Coder Social home page Coder Social logo

cuttle's Introduction

cuttle 基于fabric-ca的证书颁发

项目介绍

在开发环境中用cryptogen工具来生成各组织成员的私钥和证书。本项目基于fabric-ca,实现证书的颁发

为了兼容cryptogen(即一键颁发联盟所有证书),本项目支持两种证书颁发方式,均通过配置文件配置实现

项目依赖

go get -u golang.org/x/crypto/sha3
go get -u gopkg.in/yaml.v2
go get -v github.com/spf13/cobra/cobra

安装

go get -u learnergo/cuttle

cd $GOPATH/src/github.com/learnergo/cuttle
go build

颁发方式

- 一键颁发(即cryptogen所实现),需要配置static\crypto-config.yaml文件

- 颁发特定文件,需要配置static\cuttle.yaml文件

配置介绍

static\crypto-config.yaml 文件仿照fabric中crypto-config.yaml文件,但不同的在于每个组织需要制定各自根ca的配置文件,并且在Subject中定义通用Subject属性

static\cuttle.yaml 文件则用于颁发特定证书,配置register和enroll各个细节

运行方式

创建ca容器:
cd $GOPATH/src/github.com/learnergo/cuttle/ca_setup
./network_setup.sh up

- 一键颁发: ./cuttle gen all

- 颁发特定证书:./cuttle gen some

注意

./network_setup.sh up 命令拉起ca容器,注意ca镜像用的v1.1.0版本

cuttle's People

Contributors

1110680 avatar learnergo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.