Open thaJeztah opened 3 years ago
Relates to https://github.com/docker/cli/pull/3213
This is being used to decrypt an encrypted private key with a supplied password. This is pretty pointless as the key is sitting next to the password in the filesystem, so encrypting the key (with broken encryption) serves no purpose. I would remove the support for decrypting keys and error requiring the key is in plaintext.
PR's https://github.com/docker/cli/pull/1501 / https://github.com/docker/cli/pull/1500 added support for TLS config using encryption as specified in RFC 1423, however, that functionality has been deprecated in Go, and causes linting to fail on Go 1.16;
From https://go-review.googlesource.com/c/go/+/264159
We should consider deprecating this functionality (log a warning and/or produce an error)