Remove check of deprecated value

- NegotiatedProtocolIsMutual is always true: Deprecated according to
golang docs
This commit is contained in:
max furman 2021-04-13 14:53:05 -07:00
parent 63ec2e35b0
commit 6cfb9b790c

View file

@ -134,7 +134,7 @@ func tlsalpn01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose.JSON
"%s challenge for %s resulted in no certificates", ch.Type, ch.Value))
}
if !cs.NegotiatedProtocolIsMutual || cs.NegotiatedProtocol != "acme-tls/1" {
if cs.NegotiatedProtocol != "acme-tls/1" {
return storeError(ctx, db, ch, true, NewError(ErrorRejectedIdentifierType,
"cannot negotiate ALPN acme-tls/1 protocol for tls-alpn-01 challenge"))
}