zoukankan      html  css  js  c++  java
  • fabric-ca-client

    fabric-ca-client enroll -u http://admin:adminpw@localhost:7054

    /root/.fabric-ca-client:
    总用量 12
    -rwxr-xr-x 1 root root 6504 5月 7 10:43 fabric-ca-client-config.yaml
    drwx------ 6 root root 4096 5月 7 10:43 msp

    /root/.fabric-ca-client/msp:
    总用量 16
    drwxr-xr-x 2 root root 4096 5月 7 10:43 cacerts
    drwxr-xr-x 2 root root 4096 5月 7 10:43 intermediatecerts
    drwx------ 2 root root 4096 5月 7 10:43 keystore
    drwxr-xr-x 2 root root 4096 5月 7 10:43 signcerts

    /root/.fabric-ca-client/msp/cacerts:
    总用量 4
    -rw-r--r-- 1 root root 843 5月 7 10:43 localhost-7054.pem

    /root/.fabric-ca-client/msp/intermediatecerts:
    总用量 0
    -rw-r--r-- 1 root root 0 5月 7 10:43 localhost-7054.pem

    /root/.fabric-ca-client/msp/keystore:
    总用量 4
    -rwx------ 1 root root 241 5月 7 10:43 a200ab29874934776405e53dcc54166e3c2e8b37290430ef8d6b3ca0d6944cbc_sk

    /root/.fabric-ca-client/msp/signcerts:
    总用量 4
    -rw-r--r-- 1 root root 867 5月 7 10:43 cert.pem

    • 指定用户名密码

    fabric-ca-client enroll -u http://admin:adminpw@localhost:7054 --id.name peer1 --id.secret peer1pw
    fabric-ca-client register --id.name peer1 --id.type peer --id.affiliation org1.department1 --id.secret peer1pw -u http://admin:adminpw@localhost:7054


    fabric-ca-client register --id.name peer4
    Password: JMFSjbptVxTk

    fabric-ca-client identity list
    Name: admin, Type: client, Affiliation: , Max Enrollments: -1,
    Attributes: [{Name:hf.GenCRL Value:1 ECert:false} {Name:hf.Registrar.Attributes Value:* ECert:false} {Name:hf.AffiliationMgr Value:1 ECert:false} {Name:hf.Registrar.Roles Value:peer,orderer,client,user ECert:false} {Name:hf.Registrar.DelegateRoles Value:peer,orderer,client,user ECert:false} {Name:hf.Revoker Value:1 ECert:false} {Name:hf.IntermediateCA Value:1 ECert:false}]

    Name: peer1, Type: peer, Affiliation: org1.department1, Max Enrollments: -1,
    Attributes: [{Name:hf.EnrollmentID Value:peer1 ECert:true} {Name:hf.Type Value:peer ECert:true} {Name:hf.Affiliation Value:org1.department1 ECert:true}]

    Name: peer2, Type: peer, Affiliation: org1.department1, Max Enrollments: -1,
    Attributes: [{Name:hf.EnrollmentID Value:peer2 ECert:true} {Name:hf.Type Value:peer ECert:true} {Name:hf.Affiliation Value:org1.department1 ECert:true}]

    Name: peer3, Type: peer, Affiliation: org1.department1, Max Enrollments: -1,
    Attributes: [{Name:hf.EnrollmentID Value:peer3 ECert:true} {Name:hf.Type Value:peer ECert:true} {Name:hf.Affiliation Value:org1.department1 ECert:true}]

    Name: peer4, Type: client, Affiliation: , Max Enrollments: -1,
    Attributes: [{Name:hf.EnrollmentID Value:peer4 ECert:true} {Name:hf.Type Value:client ECert:true} {Name:hf.Affiliation Value: ECert:true}]

    Name: peer5, Type: client, Affiliation: , Max Enrollments: -1,
    Attributes: [{Name:hf.EnrollmentID Value:peer5 ECert:true} {Name:hf.Type Value:client ECert:true} {Name:hf.Affiliation Value: ECert:true}]

    Name: peer6, Type: peer, Affiliation: org1.department1, Max Enrollments: -1,
    Attributes: [{Name:hf.EnrollmentID Value:peer6 ECert:true} {Name:hf.Type Value:peer ECert:true} {Name:hf.Affiliation Value:org1.department1 ECert:true}]

    fabric-ca-client identity list --id user1
    

     

    fabric-ca-client identity add user1 --json '{"secret": "user1pw", "type": "user", "affiliation": "org1", "max_enrollments": 1, "attrs": [{"name": "hf.Revoker", "value": "true"}]}'
    

     

    http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html

  • 相关阅读:
    html +JS 自学
    Linux下SVN多版本库管理
    Jenkins更换国内源
    Kubernetes Service
    Kubernetes Pod
    ubuntu下vim配置日常工作版本
    PYTHON替代MATLAB在线性代数学习中的应用(使用Python辅助MIT 18.06 Linear Algebra学习)
    mongodb 片键需要思考的问题
    SpringBoot--Easycode插件自定义模板
    Docker-概述
  • 原文地址:https://www.cnblogs.com/ahuo/p/8991701.html
Copyright © 2011-2022 走看看