Adding a new organisation to the system channel fails after FAB-17733 #fabric-orderer #raft #fabric
Yacov
oh I see now why it works, because tls.X509KeyPair
https://github.com/hyperledger/fabric/blob/master/internal/pkg/comm/server.go#L74
iterates over the PEM and just put multiple certificates into the tls.Certificate object https://golang.org/src/crypto/tls/tls.go So, basically this seems fine to me.... From: "christoph.buttler via lists.hyperledger.org" <christoph.buttler=ruhr-uni-bochum.de@...> To: fabric@... Date: 06/16/2020 11:45 PM Subject: [EXTERNAL] Re: [Hyperledger Fabric] Adding a new organisation to the system channel fails after FAB-17733 #fabric #fabric-orderer #raft Sent by: fabric@... One or more of the following files ( example_env.zip ) violates IBM policy and all attachment(s) have been removed from the message. We are indeed doing this on the server side (see attached certificates). If you ever wonder how it can work at all, I have put together a small example environment of what this would look like. Thank you very much for your insights! |
|
@chbtt
We are indeed doing this on the server side (see attached certificates). If you ever wonder how it can work at all, I have put together a small example environment of what this would look like. Thank you very much for your insights! |
|
Yacov
I don't see why you don't want to specify
the intermediate certificate, but - your workaround looks fine to me assuming
it works.
To do what you want (just specify the root cert and not the intermediate) would require the TLS server handshake to send the full validation chain which happens only if we specify the validation chain itself in the TLS config, which we do not do: https://github.com/hyperledger/fabric/blob/master/internal/pkg/comm/server.go#L70-L95 therefore I find it hard to believe that the workaround you mention indeed works (unless I am misinterpreting your workaround - i assume you mean you do it in the server side and not in the client side) From: "christoph.buttler via lists.hyperledger.org" <christoph.buttler=ruhr-uni-bochum.de@...> To: fabric@... Date: 06/16/2020 04:05 PM Subject: [EXTERNAL] Re: [Hyperledger Fabric] Adding a new organisation to the system channel fails after FAB-17733 #fabric #fabric-orderer #raft Sent by: fabric@... Hey Yacov, thanks for your quick reply. As suggested, I have opened
a new JIRA (https://jira.hyperledger.org/browse/FAB-17998). Thanks, |
|
@chbtt
Hey Yacov, thanks for your quick reply. As suggested, I have opened a new JIRA (https://jira.hyperledger.org/browse/FAB-17998). Thanks, |
|
Yacov
Hi.
From: "christoph.buttler via lists.hyperledger.org" <christoph.buttler=ruhr-uni-bochum.de@...> To: fabric@... Date: 06/16/2020 03:57 AM Subject: [EXTERNAL] [Hyperledger Fabric] Adding a new organisation to the system channel fails after FAB-17733 #fabric #fabric-orderer #raft Sent by: fabric@... Hey, we are using an architecture where there is a TLS root
CA and each organisation has its own intermediate TLS CA which is an immediate
child to the TLS root CA (realized with fabric-ca v1.4.7). We only want
to specify the TLS root CA certificate for any connection within
the network (e.g. for "peer channel update --cafile") and have
had some trouble achieving that in the first place. Our workaround is to
append their respective intermediate TLS CA certificates to all peer/orderer
TLS certificates building the proper chain of trust up to the TLS root
CA certificate. Thanks, |
|
@chbtt
Hey, we are using an architecture where there is a TLS root CA and each organisation has its own intermediate TLS CA which is an immediate child to the TLS root CA (realized with fabric-ca v1.4.7). We only want to specify the TLS root CA certificate for any connection within the network (e.g. for "peer channel update --cafile") and have had some trouble achieving that in the first place. Our workaround is to append their respective intermediate TLS CA certificates to all peer/orderer TLS certificates building the proper chain of trust up to the TLS root CA certificate. Thanks, |
|