forked from TrueCloudLab/certificates
Fix review comments.
This commit is contained in:
parent
50b9aaec57
commit
1328aa3e47
2 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -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:
|
||||
// {
|
||||
|
|
Loading…
Reference in a new issue