From 4f2ebd78be4018df5be3d95f96d43d129f15608e Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Tue, 2 Nov 2021 16:49:17 +0200 Subject: [PATCH] Set ECDSA as the default algorithm for `flux create secret git` Signed-off-by: Stefan Prodan --- cmd/flux/create_secret_git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/flux/create_secret_git.go b/cmd/flux/create_secret_git.go index c0ee8dff..0e6d7106 100644 --- a/cmd/flux/create_secret_git.go +++ b/cmd/flux/create_secret_git.go @@ -105,7 +105,7 @@ func init() { func NewSecretGitFlags() secretGitFlags { return secretGitFlags{ - keyAlgorithm: flags.PublicKeyAlgorithm(sourcesecret.RSAPrivateKeyAlgorithm), + keyAlgorithm: flags.PublicKeyAlgorithm(sourcesecret.ECDSAPrivateKeyAlgorithm), rsaBits: 2048, ecdsaCurve: flags.ECDSACurve{Curve: elliptic.P384()}, }