Reputation: 1118
From Enrolling intermediate ca,must specify “hf.IntermediateCA = true, and
fabric-ca-server start -b admin:adminpw -u http://<enrollmentID>:<secret>@<parentserver>:<parentport>
,while I am fail to build intermediate ca server .
Could somebody give the detail steps?
Upvotes: 0
Views: 552
Reputation: 93
Suppose you launch root ca (localhost:7054) and intermediate ca (localhost:8054) on localhost.
Firstly, you should register identity with hf.IntermediateCA=true attribute by root ca. For example:
fabric-ca-client register --id.name ica --id.attrs '"hf.Registrar.Roles=user,peer",hf.Revoker=true,hf.IntermediateCA=true' --id.secret icapw
Secondly, open intermediate ca home directory and initialize the intermediate ca:
fabric-ca-server init -b icaadmin:icaadminpw -u http://ica:icapw@localhost:7054
Change port of intermediate ca (8054) and some other settings of intermediate ca in fabric-ca-server-config.yaml file.
After that, you can start intermediate ca:
fabric-ca-server start
Upvotes: 1