Skip to content

Commit 6a0bd47

Browse files
committed
bump(k8s): fix usage of crypto.MakeSelfSignedCA()
1 parent e843128 commit 6a0bd47

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/extended/oauth/oauthcertfallback.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"io/ioutil"
66
"os"
77
"path"
8+
"time"
89

910
g "github.com/onsi/ginkgo/v2"
1011
o "github.com/onsi/gomega"
@@ -71,7 +72,7 @@ var _ = g.Describe("[sig-auth][Feature:OAuthServer] OAuth server", func() {
7172
path.Join(fakecadir, "fakeca.key"),
7273
path.Join(fakecadir, "fakeca.serial"),
7374
realCA[0].Subject.String(),
74-
100,
75+
100*24*time.Hour,
7576
)
7677
o.Expect(err).NotTo(o.HaveOccurred())
7778

test/extended/util/ldap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func CreateLDAPTestServer(oc *CLI) (svcNs, svcName, svcHostname string, caPem []
7171

7272
// Create CA.
7373
ca, err := crypto.MakeSelfSignedCA(path.Join(certDir, caCertFilename), path.Join(certDir, caKeyFilename),
74-
path.Join(certDir, "serial"), caName, 100)
74+
path.Join(certDir, "serial"), caName, 100*24*time.Hour)
7575
if err != nil {
7676
return "", "", "", nil, err
7777
}

0 commit comments

Comments
 (0)