Procházet zdrojové kódy

Fix review comments.

Mariano Cano před 5 roky
rodič
revize
1328aa3e47
2 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. 1 1
      ca/identity/identity.go
  2. 4 4
      ca/tls.go

+ 1 - 1
ca/identity/identity.go

@@ -186,7 +186,7 @@ func (i *Identity) Validate() error {
 		return fileExists(i.Key)
 	case TunnelTLS:
 		if i.Host == "" {
-			return errors.New("tunnel.crt cannot be empty")
+			return errors.New("tunnel.host cannot be empty")
 		}
 		if i.Certificate != "" {
 			if err := fileExists(i.Certificate); err != nil {

+ 4 - 4
ca/tls.go

@@ -23,10 +23,10 @@ import (
 var mTLSDialContext func() func(ctx context.Context, network, address string) (net.Conn, error)
 
 func init() {
-	// STEP_TLS_TUNNEL is an environment that can be set to do an TLS over
-	// (m)TLS tunnel to step-ca using identity-like credentials. The value is a
-	// path to a json file with the tunnel host, certificate, key and root used
-	// to create the (m)TLS tunnel.
+	// STEP_TLS_TUNNEL is an environment variable that can be set to do an TLS
+	// over (m)TLS tunnel to step-ca using identity-like credentials. The value
+	// is a path to a json file with the tunnel host, certificate, key and root
+	// used to create the (m)TLS tunnel.
 	//
 	// The configuration should look like:
 	//  {