Commit graph

20 commits

Author SHA1 Message Date
9626e7f6fc Fix initial index for email SAN lookup 2024-05-05 21:32:20 +02:00
5f89d48036 Remove leftover header call 2024-05-05 21:22:16 +02:00
560be526c4 Fix client certificate login
This change fixes the client certificate login for cases where duplicate
serial numbers have been issued and recorded in the emailcerts table.

Email addresses from the client certificate are used as an additional
matching parameter.

- includes/lib/general.php got a new function
  get_email_addresses_from_client_cert to create an array of email
  addresses from the environment variables set by Apache httpd
- includes/loggedin.php and www/index.php use the new function to pass
  email addresses to the get_user_id_from_cert function
- get_user_id_from_cert in includes/lib/general.php has been enhanced to
  use a JOIN over the emailcerts, root_certs and email tables. All
  parameters are escaped via mysql_real_escape_string
- SQL errors in get_user_id_from_cert are now handled
- a match from get_user_id_from_cert is only returned when there is
  exactly one row in the result set

The code and the used query have been tested with Apache 2.4.10 and PHP
5.6 from Debian Jessie and a MariaDB 10.11 in strict mode using a
container based test setup to match the current production setup as
close as possible.
2024-05-05 20:08:53 +02:00
f6831c82af Remove opinionated comments on hash algorithms 2023-09-17 11:04:02 +02:00
687497c82f Fix l10n handling on Debian 11
Fixes bug #1542
2022-07-07 17:56:50 +02:00
Wytze van der Raay
add8566161 Fix for https://bugs.cacert.org/view.php?id=28
"Wrong language for ''you've been assured'' & ''[CAcert.org] Client Certificate'' emails"
2014-11-24 09:59:19 +00:00
Wytze van der Raay
46e866f0aa Fix for https://bugs.cacert.org/view.php?id=1297
"includes/lib/check_weak_key.php is broken after upgrade to Debian Wheezy with openssl 1.0"
2014-08-28 15:10:17 +00:00
Wytze van der Raay
69eee6b7b4 Fix for https://bugs.cacert.org/view.php?id=1292
"Issuing Certificates with "Public Exponent: 1 (0x1)""
2014-08-21 14:35:40 +00:00
Wytze van der Raay
73daac8e42 Fix for https://bugs.cacert.org/view.php?id=1280
"WOT: Contact Assurer form does not print preferred language"
2014-07-16 10:32:57 +00:00
Wytze van der Raay
924e6b0337 Intermediate patch for https://bugs.cacert.org/view.php?id=807
"CAcert ignores signature algorithm from csr".

This patch introduces the UI for our members to choose which signature
algorithm they want their certificates signed with. Among the choices
are SHA-256, SHA-384 and SHA-512. Further choices may be included as our
signer and web frontend permit.
2014-06-13 16:00:16 +00:00
Wytze van der Raay
42f16aab95 Combined fixes for
- https://bugs.cacert.org/view.php?id=413
  "Add a web page indicating the certificate request is still pending"
- https://bugs.cacert.org/view.php?id=1138
  "Implement to log the SE activity"
- https://bugs.cacert.org/view.php?id=1221
  "Inconsistency in Assurance Management"
2014-06-07 09:13:27 +00:00
Wytze van der Raay
4937cf6038 Fix for https://bugs.cacert.org/view.php?id=1255
"DSA certificate issuing ignores key strength"
2014-03-10 16:32:07 +00:00
Wytze van der Raay
b9729ffae1 Fix for http://bugs.cacert.org/view.php?id=918
"Weak keys in certificates"
2013-10-16 10:44:30 +00:00
Wytze van der Raay
ee7e7f6009 Fix for https://bugs.cacert.org/view.php?id=512
"Org admins must have 100 points"
2013-01-17 15:09:38 +00:00
Wytze van der Raay
316ef65915 Fix for https://bugs.cacert.org/view.php?id=978
"Invalid SPKAC requests are not properly validated"
2012-10-31 10:03:33 +00:00
Wytze van der Raay
7c873275ed Fix for https://bugs.cacert.org/view.php?id=1024
Assurer flag is not set correctly on updatesort.php run
2012-08-10 11:08:22 +00:00
Wytze van der Raay
942c83ae9d Fix for https://bugs.cacert.org/view.php?id=1003:
Provide a possibility to regularly review the permissions in the system.
2012-04-29 18:28:38 +00:00
root
a0070c6cd2 Fix for https://bugs.cacert.org/view.php?id=985
"Move from translingo to pootle"
2012-01-24 14:24:31 +00:00
Wytze van der Raay
d98d23ff5b Fix for https://bugs.cacert.org/view.php?id=841
(Problems on cert login with "duplicate" serial numbers)
2011-09-07 10:30:32 +00:00
Wytze van der Raay
6ef19fd6eb Fix for https://bugs.cacert.org/view.php?id=942
(CATS import interface is not fit to handle non-Assurer Challenge tests)
2011-08-03 10:04:41 +00:00