Skip to content

Commit

Permalink
Merge "[FAB-16873] fix cryptogen server TLS to admins" into release-1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
yacovm authored and Gerrit Code Review committed Oct 21, 2019
2 parents 76383ac + d6669bf commit f71cfc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/tools/cryptogen/msp/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func GenerateLocalMSP(baseDir, name string, sans []string, signCA *ca.CA,

// rename the generated TLS X509 cert
tlsFilePrefix := "server"
if nodeType == CLIENT {
if nodeType == CLIENT || nodeType == ADMIN {
tlsFilePrefix = "client"
}
err = os.Rename(filepath.Join(tlsDir, x509Filename(name)),
Expand Down

0 comments on commit f71cfc7

Please sign in to comment.