forked from hyperledger/fabric-ca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfabric-ca-client-config.yaml
85 lines (79 loc) · 2.88 KB
/
fabric-ca-client-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
#############################################################################
# This is a configuration file for the fabric-ca-client command.
#
# COMMAND LINE ARGUMENTS AND ENVIRONMENT VARIABLES
# ------------------------------------------------
# Each configuration element can be overridden via command line
# arguments or environment variables. The precedence for determining
# the value of each element is as follows:
# 1) command line argument
# Examples:
# a) --url https://localhost:7054
# To set the fabric-ca server url
# 2) environment variable
# Examples:
# a) FABRIC_CA_CLIENT_URL=https://localhost:7054
# To set the fabric-ca server url
# 3) configuration file
# 4) default value (if there is one)
# All default values are shown beside each element below.
#
# FILE NAME ELEMENTS
# ------------------
# All filename elements below end with the word "file".
# For example, see "certfile" and "keyfile" in the "ca" section.
# The value of each filename element can be a simple filename, a
# relative path, or an absolute path. If the value is not an
# absolute path, it is interpretted as being relative to the location
# of this configuration file.
#
#############################################################################
#############################################################################
# Client Configuration
#############################################################################
# URL of the Fabric-ca-server (default: http://localhost:7054)
URL: http://localhost:7090
#############################################################################
# TLS section for secure socket connection
#############################################################################
tls:
# TLS section for secure socket connection
certfiles: root.pem # Comma Separated list of root certificate files (e.g. root.pem, root2.pem)
client:
certfile: tls_client-cert.pem
keyfile: tls_client-key.pem
#############################################################################
# Certificate Signing Request section for generating the CSR for
# an enrollment certificate (ECert)
#############################################################################
csr:
cn: admin2
names:
- C: US
ST: "North Carolina"
L:
O: Hyperledger
OU: Fabric
hosts:
- hostname
ca:
pathlen:
pathlenzero:
expiry:
#############################################################################
# Registration section used to register a new user with fabric-ca server
#############################################################################
id:
name: testRegister
type: client
affiliation: hyperledger.org3
attributes:
- name: hf.Revoker
value: true
- name: foo
value: bar