Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions wfe/wfe.go
Original file line number Diff line number Diff line change
Expand Up @@ -1917,6 +1917,7 @@ func (wfe *WebFrontEndImpl) RenewalInfo(_ context.Context, response http.Respons
}

if cert.ARIResponse != "" {
response.Header().Set("Content-Type", "application/json; charset=utf-8")
_, _ = response.Write([]byte(cert.ARIResponse))
return
}
Expand Down Expand Up @@ -3011,13 +3012,13 @@ func (wfe *WebFrontEndImpl) processRevocation(
return acme.MalformedProblem("Error decoding Base64url-encoded DER: " + err.Error())
}

revokedCert := wfe.db.GetRevokedCertificateByDER(derBytes)
if revokedCert != nil {
return acme.AlreadyRevokedProblem("Certificate has already been revoked.")
}

cert := wfe.db.GetCertificateByDER(derBytes)
if cert == nil {
cert := wfe.db.GetRevokedCertificateByDER(derBytes)
if cert != nil {
return acme.AlreadyRevokedProblem("Certificate has already been revoked.")
}

return acme.MalformedProblem("Unable to find specified certificate.")
}

Expand Down
Loading