mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
pkg/transport: include debug output for trusted-ca
since --peer-ca-file is deprecated we need to update the debug output before: ``` $ etcd ... --peer-cert-file infra1.crt -peer-key-file infra1.key.insecure -peer-trusted-ca-file ca.crt --client-cert-auth etcdmain: peerTLS: cert = infra1.crt, key = infra1.key.insecure, ca = ``` after: ``` $ etcd ... --peer-cert-file infra1.crt -peer-key-file infra1.key.insecure -peer-trusted-ca-file ca.crt --client-cert-auth etcdmain: peerTLS: cert = infra1.crt, key = infra1.key.insecure, ca = , trusted-ca = ca.crt ```
This commit is contained in:
parent
cbe00e4415
commit
09b9c30beb
@ -78,7 +78,7 @@ type TLSInfo struct {
|
||||
}
|
||||
|
||||
func (info TLSInfo) String() string {
|
||||
return fmt.Sprintf("cert = %s, key = %s, ca = %s", info.CertFile, info.KeyFile, info.CAFile)
|
||||
return fmt.Sprintf("cert = %s, key = %s, ca = %s, trusted-ca = %s", info.CertFile, info.KeyFile, info.CAFile, info.TrustedCAFile)
|
||||
}
|
||||
|
||||
func (info TLSInfo) Empty() bool {
|
||||
|
Loading…
x
Reference in New Issue
Block a user