Skip to content

Commit

Permalink
[FAB-16873] fix cryptogen server TLS to admins
Browse files Browse the repository at this point in the history
- fixed cryptogen allocates server TLS certificates to admin users
when nodeOU is enabled.

Change-Id: If79a5c5860cbc0c9713cabb891d6737b7bacbaec
Signed-off-by: Chongxin Luo <Chongxin.Luo@ibm.com>
  • Loading branch information
DereckLuo committed Oct 21, 2019
1 parent a2bdb34 commit d6669bf
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 d6669bf

Please sign in to comment.