Skip to content

Commit 26248e8

Browse files
committed
Fix Nebula sign operations requiring curve to be specified
1 parent fc22ecc commit 26248e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

authority/provisioner/nebula_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ func mustNebulaCA(t *testing.T) (*cert.NebulaCertificate, ed25519.PrivateKey) {
5353
NotAfter: time.Now().Add(10 * time.Minute),
5454
PublicKey: pub,
5555
IsCA: true,
56+
Curve: cert.Curve_CURVE25519,
5657
},
5758
}
58-
if err := nc.Sign(priv); err != nil {
59+
if err := nc.Sign(cert.Curve_CURVE25519, priv); err != nil {
5960
t.Fatal(err)
6061
}
6162
return nc, priv
@@ -92,10 +93,11 @@ func mustNebulaCert(t *testing.T, name string, ipNet *net.IPNet, groups []string
9293
IsCA: false,
9394
Issuer: issuer,
9495
InvertedGroups: invertedGroups,
96+
Curve: cert.Curve_CURVE25519,
9597
},
9698
}
9799

98-
if err := nc.Sign(signer); err != nil {
100+
if err := nc.Sign(cert.Curve_CURVE25519, signer); err != nil {
99101
t.Fatal(err)
100102
}
101103

0 commit comments

Comments
 (0)