You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// KeyUsages specifies which Extended Key Usage values are acceptable. A// chain is accepted if it allows any of the listed values. An empty list// means ExtKeyUsageServerAuth. To accept any key usage, include ExtKeyUsageAny.KeyUsages []ExtKeyUsage
In my case, the msp admin and peer had the following extended key usage:
In practice, Fabric extendedKeyUsages are limited to ExtKeyUsageServerAuth (see references below). Is there a reason for that?
In the msp, the field
x509.VerifyOptions.KeyUsages
is never set:fabric/msp/mspimplsetup.go
Line 118 in af3ccd3
fabric/msp/mspimplsetup.go
Line 158 in af3ccd3
Which means ExtKeyUsageServerAuth:
https://github.com/golang/go/blob/0afd7e85e5d7154161770f06a17d09bf1ffa3e94/src/crypto/x509/verify.go#L203-L206 states:
In my case, the msp admin and peer had the following extended key usage:
As a possible solution, the value could be set to x509.ExtKeyUsageAny.
The text was updated successfully, but these errors were encountered: