forked from TrueCloudLab/certificates
Tiny finishes.
This commit is contained in:
parent
6843408d42
commit
157686e338
2 changed files with 1 additions and 4 deletions
|
@ -406,9 +406,6 @@ func (tc *tlsALPN01Challenge) validate(db nosql.DB, jwk *jose.JSONWebKey, vo val
|
||||||
certs := cs.PeerCertificates
|
certs := cs.PeerCertificates
|
||||||
|
|
||||||
if len(certs) == 0 {
|
if len(certs) == 0 {
|
||||||
// note: it does not seem to be possible to trigger this path, as the Go TLS client will return a dial error
|
|
||||||
// when no certificate is served
|
|
||||||
|
|
||||||
if err = tc.storeError(db,
|
if err = tc.storeError(db,
|
||||||
RejectedIdentifierErr(errors.Errorf("%s challenge for %s resulted in no certificates",
|
RejectedIdentifierErr(errors.Errorf("%s challenge for %s resulted in no certificates",
|
||||||
tc.Type, tc.Value))); err != nil {
|
tc.Type, tc.Value))); err != nil {
|
||||||
|
|
|
@ -1509,7 +1509,7 @@ func TestTLSALPN01Validate(t *testing.T) {
|
||||||
res: ch,
|
res: ch,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ok/with-new-oid": func(t *testing.T) test {
|
"ok": func(t *testing.T) test {
|
||||||
ch, err := newTLSALPNCh()
|
ch, err := newTLSALPNCh()
|
||||||
assert.FatalError(t, err)
|
assert.FatalError(t, err)
|
||||||
_ch, ok := ch.(*tlsALPN01Challenge)
|
_ch, ok := ch.(*tlsALPN01Challenge)
|
||||||
|
|
Loading…
Reference in a new issue