From 4621576f40feb409a7ae406365012267e689ea86 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Tue, 2 Nov 2021 17:21:10 +0200 Subject: [PATCH] Set ECDSA as the default algorithm for `flux create source git` Signed-off-by: Stefan Prodan --- cmd/flux/create_source_git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/flux/create_source_git.go b/cmd/flux/create_source_git.go index 3b987f71..f2c6b918 100644 --- a/cmd/flux/create_source_git.go +++ b/cmd/flux/create_source_git.go @@ -143,7 +143,7 @@ func init() { func newSourceGitFlags() sourceGitFlags { return sourceGitFlags{ - keyAlgorithm: flags.PublicKeyAlgorithm(sourcesecret.RSAPrivateKeyAlgorithm), + keyAlgorithm: flags.PublicKeyAlgorithm(sourcesecret.ECDSAPrivateKeyAlgorithm), keyRSABits: 2048, keyECDSACurve: flags.ECDSACurve{Curve: elliptic.P384()}, }