Commit 4b3c5325 authored by elcore's avatar elcore Committed by Matt Holt

Use P384 for TestUser (privateKey) (#1009)

parent 4d76ccb1
......@@ -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)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment