I am trying to setup a Fabric Root CA and intermediate CA.
Evironment is as follows using go language, version 1.7.1 .
Farbic root ca Configuration is as follows for Caconstanint for Allowing this Ca to sign other intermeridate certs.
signing:
default:
usage:
- digital signature
expiry: 8760h
profiles:
ca:
usage:
- cert sign
expiry: 43800h
caconstraint:
isca: true
maxpathlen: 1
Under the CSR section for the pathlength
csr:
cn: fabric-root.example.com
names:
- C: US
ST: "North Carolina"
L: cary
O: Hyperledger
OU: Fabric
hosts:
- fabric-ca-root.example.com
- fabric-ca-root
- fabric-root
ca:
expiry: 131400h
pathlength: 1
Verified the cert for these values using go script. https://play.golang.org/p/qoC7PIAmuo0
it has MaxPathLen
and MaxPathLenZero
1 false.
But still when CA intermediate service is enrolling I am getting this error from Cfssl library call on CA server as below.
2018/02/16 12:19:39 [DEBUG] getUserAttrValue identity=fabric-int-ca-1.example.com, name=hf.IntermediateCA, value=true
2018/02/16 12:19:39 [ERROR] local signer policy disallows issuing CA certificate
2018/02/16 12:19:39 [ERROR] Enrollment failure: Failed signing: {"code":5300,"message":"Policy violation request"}
Please advice if any one had similar issue if you find a workaround ?