On 14.07.2019 00:29, Branko Čibej wrote:
> On 13.07.2019 23:31, kotkov_at_apache.org wrote:
>> Author: kotkov
>> Date: Sat Jul 13 21:31:25 2019
>> New Revision: 1863018
>> URL: http://svn.apache.org/viewvc?rev=1863018&view=rev
>> Win32: tweak the SSL certificate validation override to avoid hitting the wire
>> for URL based objects and revocation checks.
>> The primary purpose of this callback is to resolve SVN_AUTH_SSL_UNKNOWNCA
>> failures using CryptoAPI and Windows local certificate stores. To do so, we
>> should be fine with just using the immediately available data on the local
>> Doing the opposite of that appears to be troublesome, as always connecting
>> to remote CRL and OCSP endpoints can result in spurious errors or significant
>> (user-reported) network stalls caused by timeouts if the endpoints are
>> inaccessible or unreliable.
>> The new approach should also be in par with the default basic behavior of
>> several major browsers, for example:
> Uh. I don't think so.
> First of all, the reference to Chromium source is a red herring ... that
> code disables CRL/OCSP checks *if some caller required it to*. You'll
> find that browsers do, indeed, check CRL or OCSP info, if it's available.
> Your change disables all online verification, regardless, and that seems
> quite wrong.
> If the server certificate contains CRL or OCSP information, the client
> SHOULD verify them. If verification services are flaky, users should
> report that to the server admin (who can then report it to the
> certificate issuer). We don't "fix" that by removing validation
> altogether in our client.
> So ... -1, please revert and let's discuss this change on the list
> first. It's far more significant than you seem to think.
To start off this discussion, I'll note that we don't currently use CRLs
or OCSP on other platforms. This is probably because Serf 1.3.9 doesn't
give us any support for that (though it does support OCSP stapling).
However, the as yet unreleased Serf 1.4.0 does have support for OCSP
(I'd have to double-check about CRL).
In any case, given what year it is on the calendar, we SHOULD try to add
OCSP verification to the client. The server can already do that for
client certs, since it's only a matter of httpd configuration.
P.S.: Yes, I realize this means getting Serf 1.4.0 out the door first ...
Received on 2019-07-14 10:33:36 CEST