github.com/silveraid/fabric-ca@v1.1.0-preview.0.20180127000700-71974f53ab08/docs/source/clientcli.rst (about) 1 Fabric-CA Client's CLI 2 ====================== 3 4 :: 5 6 Hyperledger Fabric Certificate Authority Client 7 8 Usage: 9 fabric-ca-client [command] 10 11 Available Commands: 12 affiliation Manage affiliations 13 enroll Enroll an identity 14 gencrl Generate a CRL 15 gencsr Generate a CSR 16 getcacert Get CA certificate chain 17 identity Manage identities 18 reenroll Reenroll an identity 19 register Register an identity 20 revoke Revoke an identity 21 version Prints Fabric CA Client version 22 23 Flags: 24 --caname string Name of CA 25 --csr.cn string The common name field of the certificate signing request 26 --csr.hosts stringSlice A list of space-separated host names in a certificate signing request 27 --csr.names stringSlice A list of comma-separated CSR names of the form <name>=<value> (e.g. C=CA,O=Org1) 28 --csr.serialnumber string The serial number in a certificate signing request 29 -d, --debug Enable debug level logging 30 --enrollment.attrs stringSlice A list of comma-separated attribute requests of the form <name>[:opt] (e.g. foo,bar:opt) 31 --enrollment.label string Label to use in HSM operations 32 --enrollment.profile string Name of the signing profile to use in issuing the certificate 33 -H, --home string Client's home directory (default "$HOME/.fabric-ca-client") 34 --id.affiliation string The identity's affiliation 35 --id.attrs stringSlice A list of comma-separated attributes of the form <name>=<value> (e.g. foo=foo1,bar=bar1) 36 --id.maxenrollments int The maximum number of times the secret can be reused to enroll. (default -1) 37 --id.name string Unique name of the identity 38 --id.secret string The enrollment secret for the identity being registered 39 --id.type string Type of identity being registered (e.g. 'peer, app, user') (default "client") 40 -M, --mspdir string Membership Service Provider directory (default "msp") 41 -m, --myhost string Hostname to include in the certificate signing request during enrollment (default "$HOSTNAME") 42 -a, --revoke.aki string AKI (Authority Key Identifier) of the certificate to be revoked 43 -e, --revoke.name string Identity whose certificates should be revoked 44 -r, --revoke.reason string Reason for revocation 45 -s, --revoke.serial string Serial number of the certificate to be revoked 46 --tls.certfiles stringSlice A list of comma-separated PEM-encoded trusted certificate files (e.g. root1.pem,root2.pem) 47 --tls.client.certfile string PEM-encoded certificate file when mutual authenticate is enabled 48 --tls.client.keyfile string PEM-encoded key file when mutual authentication is enabled 49 -u, --url string URL of fabric-ca-server (default "http://localhost:7054") 50 51 Use "fabric-ca-client [command] --help" for more information about a command.