Skip to content

Commit bb32aa3

Browse files
committed
[FAB-1994] - support intermediate CAs in MSP
MSPs should support intermediate CAs to permit validation of certificate chains longer than 2. This change set adds the relevant field to the msp config protobuf. Change-Id: Ia521091803e9c93536bcd5f4a0e4ca780b44a5b9 Signed-off-by: Alessandro Sorniotti <[email protected]>
1 parent 4978313 commit bb32aa3

File tree

2 files changed

+54
-30
lines changed

2 files changed

+54
-30
lines changed

protos/msp/mspconfig.pb.go

+38-26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/msp/mspconfig.proto

+16-4
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,31 @@ message FabricMSPConfig {
4848
// this can refer to the Subject OU field or the Issuer OU field.
4949
string Name = 1;
5050

51-
// List of root certificates associated
51+
// List of root certificates trusted by this MSP
52+
// they are used upon certificate validation (see
53+
// comment for IntermediateCerts below)
5254
repeated bytes RootCerts = 2;
5355

56+
// List of intermediate certificates trusted by this MSP;
57+
// they are used upon certificate validation as follows:
58+
// validation attempts to build a path from the certificate
59+
// to be validated (which is at one end of the path) and
60+
// one of the certs in the RootCerts field (which is at
61+
// the other end of the path). If the path is longer than
62+
// 2, certificates in the middle are searched within the
63+
// IntermediateCerts pool
64+
repeated bytes IntermediateCerts = 3;
65+
5466
// Identity denoting the administrator of this MSP
55-
repeated bytes Admins = 3;
67+
repeated bytes Admins = 4;
5668

5769
// Identity revocation list
58-
repeated bytes RevocationList = 4;
70+
repeated bytes RevocationList = 5;
5971

6072
// SigningIdentity holds information on the signing identity
6173
// this peer is to use, and which is to be imported by the
6274
// MSP defined before
63-
SigningIdentityInfo SigningIdentity = 5;
75+
SigningIdentityInfo SigningIdentity = 6;
6476
}
6577

6678
// SigningIdentityInfo represents the configuration information

0 commit comments

Comments
 (0)