aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2016-05-22 15:23:13 +0100
committerNiall Sheridan <nsheridan@gmail.com>2016-05-22 15:23:13 +0100
commitcb02bbd37c34b9fc55057d8d97115b42220afc9e (patch)
treedad99c62c21afbac7efaa721e6350a8641ea4ff4 /client
parent80dafd879b958e4865676c65b77557cf9392aeb5 (diff)
Make 2048 the default key size.
Diffstat (limited to 'client')
-rw-r--r--client/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/main.go b/client/main.go
index 355f229..8bcc3e7 100644
--- a/client/main.go
+++ b/client/main.go
@@ -20,7 +20,7 @@ import (
var (
ca = flag.String("ca", "http://localhost:10000", "CA server")
- keybits = flag.Int("bits", 4096, "Key size. Ignored for ed25519 keys")
+ keybits = flag.Int("bits", 2048, "Key size. Ignored for ed25519 keys")
validity = flag.Duration("validity", time.Hour*24, "Key validity")
keytype = flag.String("key_type", "rsa", "Type of private key to generate - rsa, ecdsa or ed25519")
)
@@ -100,6 +100,7 @@ func main() {
if err := browser.OpenURL(*ca); err != nil {
fmt.Println("Error launching web browser. Go to the link in your web browser")
}
+ fmt.Println("Generating new key pair")
priv, pub, err := generateKey(*keytype, *keybits)
if err != nil {
log.Fatalln("Error generating key pair: ", err)