Skip to content

Commit

Permalink
[FAB-5512] Fix typos in fabric-ca-client package
Browse files Browse the repository at this point in the history
  config.go:
    Line 125: "Distinquished" should be "Distinguished"
  main.go:
    Line 34: "Hyerledger" should be "Hyperledger"
    Line 92: "Distinquished" should be "Distinguished"
    Line 124: "enbled" should be "enabled"

Change-Id: Icb987c0627d3d0a667ded88ec45f1ec9dfb441fa
Signed-off-by: Yaocheng Ye <[email protected]>
  • Loading branch information
Yaocheng Ye committed Jul 28, 2017
1 parent 86a6d7d commit 64676ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/fabric-ca-client/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ tls:
# hosts - A list of space-separated host names which the certificate should be valid for
#
# NOTE: The serialnumber field below, if specified, becomes part of the issued
# certificate's DN (Distinquished Name). For example, one use case for this is
# certificate's DN (Distinguished Name). For example, one use case for this is
# a company with its own CA (Certificate Authority) which issues certificates
# to its employees and wants to include the employee's serial number in the DN
# of its issued certificates.
Expand Down
6 changes: 3 additions & 3 deletions cmd/fabric-ca-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/spf13/viper"
)

// rootCmd is the base command for the Hyerledger Fabric CA client
// rootCmd is the base command for the Hyperledger Fabric CA client
var rootCmd = &cobra.Command{
Use: cmdName,
Short: longName,
Expand Down Expand Up @@ -89,7 +89,7 @@ func init() {
clientCfg = &lib.ClientConfig{}
tags := map[string]string{
"skip.csr.cn": "true", // Skip CN on client side as enrollment ID is used as CN
"help.csr.serialnumber": "The serial number in a certificate signing request, which becomes part of the DN (Distinquished Name)",
"help.csr.serialnumber": "The serial number in a certificate signing request, which becomes part of the DN (Distinguished Name)",
"help.csr.hosts": "A list of comma-separated host names in a certificate signing request",
}
err = util.RegisterFlags(pflags, clientCfg, tags)
Expand Down Expand Up @@ -121,7 +121,7 @@ func RunMain(args []string) error {
}

// checkAndEnableProfiling checks for the FABRIC_CA_CLIENT_PROFILE_MODE
// env variable, if it is set to "cpu", cpu profiling is enbled;
// env variable, if it is set to "cpu", cpu profiling is enabled;
// if it is set to "heap", heap profiling is enabled
func checkAndEnableProfiling() error {
profileMode = strings.ToLower(os.Getenv(fabricCAClientProfileMode))
Expand Down

0 comments on commit 64676ae

Please sign in to comment.