David Keeler
91fd4bf7e6
bug 1364159 - potentially avoid calling CERT_CreateSubjectCertList in NSSCertDBTrustDomain::FindIssuer r=Cykesiopka,jcj
...
CERT_CreateSubjectCertList is not an inexpensive function call, since it
enumerates the certificate database (i.e. reads from disk a lot). If we're
verifying for a TLS handshake, however, we should already have in memory a
certificate chain sent by the peer (there are some cases where we won't, such as
session resumption (see bug 731478)). If we can, we should use those
certificates before falling back to calling CERT_CreateSubjectCertList.
MozReview-Commit-ID: ASjVGsELb1O
2017-05-11 16:41:12 -07:00
David Keeler
8bac8ad048
bug 1345612 - avoid calling NS_NewURI on IP addresses when checking certificate overrides r=Cykesiopka
...
When determining if a certificate error override is allowed for a host, we
consult nsISiteSecurityService::IsSecureURI to see if the host is HSTS/HPKP.
This API takes an nsIURI, but the calling code only has a hostname as an
nsCString. Calling NS_NewURI works in all situations we will encounter except
when the hostname is an IPv6 address. Since IP addresses are never HSTS/HPKP
anyway, we can skip the NS_NewURI / IsSecureURI calls in those cases as a
workaround.
MozReview-Commit-ID: JXa8cGvqqTA
2017-03-20 13:42:27 -07:00
David Keeler
d315ddf40e
bug 1313491 - add basic tests that PSM sets the right security state during session resumption r=Cykesiopka,jcj,mgoodwin
...
MozReview-Commit-ID: 3Q265OJyTIO
2016-11-01 13:47:51 -07:00
David Cook
37e207d138
Bug 1115718 - Check for empty issuer name in mozilla::pkix; r=keeler
...
MozReview-Commit-ID: 6Ymgo7dQE7b
2016-07-28 20:36:18 -05:00
Cykesiopka
0bfd71da46
Bug 1260643 - Convert most uses of ScopedCERTCertificate in PSM to UniqueCERTCertificate. r=keeler
...
MozReview-Commit-ID: JnjoUd7d2M0
2016-04-20 01:14:22 -07:00
Cykesiopka
40e35edded
Bug 1258298 - Switch more Scoped.h templates in PSM to UniquePtr equivalents. r=keeler
...
MozReview-Commit-ID: 8VOhiuNOlBX
2016-03-24 18:30:37 -07:00
David Keeler
9f041465fe
bug 1209695 - fold mochitest test_bug413909.html into xpcshell test_cert_overrides.js r=mgoodwin
...
test_bug413909.html doesn't need to be a mochitest. Furthermore,
test_cert_overrides.js tests a lot of the same functionality.
This just moves the unique parts from the old test to a new home
in the xpcshell test (to be specific, some IDN handling and that
"port" -1 is the same as port 443).
2015-09-29 13:24:19 -07:00
David Keeler
b761174a01
bug 1203312 - convert tlsserver to generate certificates at build time r=Cykesiopka,mgoodwin
2015-08-24 15:53:07 -07:00
Wes Kocher
9b72dc4471
Backed out changeset a08287c70962 (bug 1203312) for b2g xpcshell failures
2015-09-18 12:53:24 -07:00
David Keeler
94f1b8bbb8
bug 1203312 - convert tlsserver to generate certificates at build time r=Cykesiopka,mgoodwin
2015-08-24 15:53:07 -07:00
David Keeler
5836af0bbd
bug 1170303 - treat malformed name information in certificates as a domain name mismatch r=Cykesiopka
2015-06-01 13:55:23 -07:00
David Keeler
c29eae5898
bug 1147497 - Add API for querying site pin status. Disallow overrides for sites that have pins. r=mmc r=smaug r=cykesiopka r=past
2015-03-25 11:04:49 -07:00
David Keeler
0304a51ca7
bug 1138332 - re-allow overrides for certificates signed by non-CA certificates r=mmc
2015-03-11 11:11:22 -07:00
Cykesiopka
3aeac9361b
Bug 1097622 - Add test cases for certs that have notBefore times earlier than the UNIX epoch. r=dkeeler
2015-02-17 06:15:00 -05:00
David Keeler
ea1dc9b952
bug 1123671 - if a non-overridable error is encountered when processing an overridable certificate error, report the non-overridable error r=mmc r=jcj
...
Also, SEC_ERROR_UNTRUSTED_ISSUER and SEC_ERROR_UNTRUSTED_CERT are not actually overridable, so don't pretend they are.
2015-01-23 14:04:44 -08:00
Cykesiopka
08289d6483
Bug 968560 - Add missing Not-Yet-Valid cert override tests. r=dkeeler
2015-02-06 11:18:04 -08:00
David Keeler
95d6303119
bug 1065909 - canonicalize hostnames in nsSiteSecurityService and PublicKeyPinningService r=mmc
2015-01-09 09:46:05 -08:00
Cykesiopka
943b5ecaba
Bug 1084606 - Allow overrides for MOZILLA_PKIX_ERROR_INADEQUATE_KEY_SIZE. r=dkeeler
2014-11-11 00:59:00 +01:00
David Keeler
1aeba592a9
bug 1042889 - test certificate overrides for untrusted x509v1 certificates used as CAs r=mmc
2014-10-15 10:42:13 -07:00
David Keeler
5b934228a8
bug 1066190 - ensure that pinning checks are done for otherwise overridable errors r=mmc
2014-09-12 13:20:43 -07:00
David Keeler
644ec64d07
bug 1034124 - allow overrides when a CA cert is used as an end-entity cert r=briansmith
2014-08-22 12:07:08 -07:00
David Keeler
e4e114b36b
bug 1009161 - mozilla::pkix: allow the Netscape certificate type extension if more standardized information is present r=briansmith
2014-08-25 09:25:36 -07:00
Monica Chew
ed03adea3e
Bug 772756: Implement sha1 support, import Chrome's pinsets wholesale, add test mode (r=cviecco,keeler)
2014-05-08 17:18:50 -07:00
Monica Chew
ecd843fe80
Bug 998057: Add tests for certificate pinning (r=cviecco,dkeeler)
2014-04-30 20:11:35 -07:00
Monica Chew
81e8e4b157
Backed out changeset 9c8fbf297d51
...
Camilo did not land his patch that this depends on, my bad.
2014-04-30 20:01:34 -07:00
Monica Chew
4fdfe78dd1
Bug 998057: Add tests for certificate pinning (r=cviecco,dkeeler)
2014-04-30 19:56:03 -07:00
David Keeler
d7e3b31794
bug 990603 - test override for server certificate with basic constraints: CA=true r=briansmith
2014-04-08 09:51:45 -07:00
David Keeler
6fa5f952b3
bug 982754 - allow some inadequate key usage overrides r=cviecco
2014-03-13 16:49:12 -07:00
David Keeler
ee379585d3
bug 978797 - stop classifying SEC_ERROR_INADEQUATE_KEY_USAGE as a "bad cert" error r=briansmith
2014-03-03 15:39:07 -08:00
Brian Smith
f7413b144d
Bug 975122: Allow cert error overrides when insanity::pkix is used, r?cviecco, r?keeler
2014-02-22 19:08:06 -08:00
David Keeler
ef6ff536d3
bug 967975 - certificate error override telemetry r=briansmith
2014-02-13 14:53:29 -08:00