diff --git a/common/tools/cryptogen/msp/generator.go b/common/tools/cryptogen/msp/generator.go index c3e96c4c09f..eb9c9c7cee5 100644 --- a/common/tools/cryptogen/msp/generator.go +++ b/common/tools/cryptogen/msp/generator.go @@ -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)),