Skip to content

Commit 77e8d1f

Browse files
authored
Fix TLS-ALPN master breakage.
#91 broke autocert tests because of the new OID this should bring the changes in line with master.
1 parent 6ca56c2 commit 77e8d1f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

acme/autocert/autocert_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,8 @@ func startACMEServerStub(t *testing.T, tokenCert getCertificateFunc, domain stri
488488
if err := crt.VerifyHostname(domain); err != nil {
489489
t.Errorf("verifyTokenCert: %v", err)
490490
}
491-
// TODO: Update OID to the latest value 1.3.6.1.5.5.7.1.31
492491
// See https://tools.ietf.org/html/draft-ietf-acme-tls-alpn-05#section-5.1
493-
oid := asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 1, 30, 1}
492+
oid := asn1.ObjectIdentifier{1, 3, 6, 1, 5, 5, 7, 1, 31}
494493
for _, x := range crt.Extensions {
495494
if x.Id.Equal(oid) {
496495
// No need to check the extension value here.

0 commit comments

Comments
 (0)