From 4b3c53257353f4df8b3a0aeb3241cbc3d7d71de3 Mon Sep 17 00:00:00 2001 From: elcore Date: Mon, 8 Aug 2016 19:13:10 +0200 Subject: [PATCH] Use P384 for TestUser (privateKey) (#1009) --- caddytls/user_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/caddytls/user_test.go b/caddytls/user_test.go index 6965d149..10393d21 100644 --- a/caddytls/user_test.go +++ b/caddytls/user_test.go @@ -2,8 +2,9 @@ package caddytls import ( "bytes" + "crypto/ecdsa" + "crypto/elliptic" "crypto/rand" - "crypto/rsa" "io" "strings" "testing" @@ -16,7 +17,7 @@ import ( func TestUser(t *testing.T) { defer testStorage.clean() - privateKey, err := rsa.GenerateKey(rand.Reader, 128) + privateKey, err := ecdsa.GenerateKey(elliptic.P384(), rand.Reader) if err != nil { t.Fatalf("Could not generate test private key: %v", err) }