tempfork/acme: update to latest version (#15543)

Pull in https://github.com/tailscale/golang-x-crypto/pull/16

Updates #15542

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
This commit is contained in:
Andrew Lytvynov
2025-04-04 16:32:12 -07:00
committed by GitHub
parent e2eb6eb870
commit 46505ca338
7 changed files with 52 additions and 13 deletions

View File

@@ -766,10 +766,17 @@ func TestRFC_AuthorizeOrder(t *testing.T) {
s.start()
defer s.close()
prevCertDER, _ := pem.Decode([]byte(leafPEM))
prevCert, err := x509.ParseCertificate(prevCertDER.Bytes)
if err != nil {
t.Fatal(err)
}
cl := &Client{Key: testKeyEC, DirectoryURL: s.url("/")}
o, err := cl.AuthorizeOrder(context.Background(), DomainIDs("example.org"),
WithOrderNotBefore(time.Date(2019, 8, 31, 0, 0, 0, 0, time.UTC)),
WithOrderNotAfter(time.Date(2019, 9, 2, 0, 0, 0, 0, time.UTC)),
WithOrderReplacesCert(prevCert),
)
if err != nil {
t.Fatal(err)