The main CAcert website code. This repository started as a conversion of the CVS repository from http://www.cacert.org/cacert-cvs.tar.bz2
Find a file
Jan Dittberner 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
cgi-bin Changed license to GPLv2 2008-04-06 19:45:09 +00:00
CommModule Use Digest::SHA instead of removed Digest::SHA1 2024-05-03 20:00:23 +02:00
includes Fix client certificate login 2024-05-05 20:08:53 +02:00
locale Remove locale/cv.c 2024-05-04 10:10:02 +02:00
pages Add missing closing a tag for link 2023-09-17 10:49:48 +02:00
scripts Add migration script for missing users DEFAULTs 2023-07-14 18:18:49 +02:00
stamp Combined fixes for 2014-06-07 09:14:52 +00:00
tmp Fix for https://bugs.cacert.org/view.php?id=896 : 2011-03-16 15:01:35 +00:00
tverify http://bugs.cacert.org/view.php?id=588 2009-04-05 00:31:25 +00:00
www Fix client certificate login 2024-05-05 20:08:53 +02:00
.gitignore Ignore files that are dynamically generated 2024-05-03 19:54:16 +02:00
LICENSE Changed license to GPLv2 2008-04-06 19:45:09 +00:00
README Fix for https://bugs.cacert.org/view.php?id=918 2011-06-16 09:18:37 +00:00

LibreSSL Documentation

(c) 2005-2008 by CAcert Inc.
License: GNU-GPLv2

System Requirements:
Linux/POSIX
PHP
GetText
UFPDF - PDF generation library from http://acko.net/node/56
OpenSSL - X.509 toolkit from http://www.openssl.org/
openssl-vulnkey including blacklists for all common key sizes
GnuPG - OpenPGP toolkit from http://www.gnupg.org/
whois - whois client from http://www.linux.it/~md/software/
XEnroll - Enrollment Active-X control for IE5/6 from Microsoft (search for xenroll.cab)
CommModule - CAcert Communication Module