mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
dimngr: Do not check the self-signature of a root CA cert.
* dirmngr/validate.c (validate_cert_chain): Comment out that code.
This commit is contained in:
parent
de87c8e1ea
commit
b901e63b4d
@ -551,14 +551,14 @@ validate_cert_chain (ctrl_t ctrl, ksba_cert_t cert, ksba_isotime_t r_exptime,
|
|||||||
/* Is this a self-signed certificate? */
|
/* Is this a self-signed certificate? */
|
||||||
if (is_root_cert (subject_cert, issuer, subject))
|
if (is_root_cert (subject_cert, issuer, subject))
|
||||||
{
|
{
|
||||||
/* Yes, this is our trust anchor. */
|
/* There is no need to check the signature of the trust anchor. */
|
||||||
if (check_cert_sig (subject_cert, subject_cert) )
|
/* if (check_cert_sig (subject_cert, subject_cert) ) */
|
||||||
{
|
/* { */
|
||||||
log_error (_("selfsigned certificate has a BAD signature"));
|
/* log_error (_("selfsigned certificate has a BAD signature")); */
|
||||||
err = gpg_error (depth? GPG_ERR_BAD_CERT_CHAIN
|
/* err = gpg_error (depth? GPG_ERR_BAD_CERT_CHAIN */
|
||||||
: GPG_ERR_BAD_CERT);
|
/* : GPG_ERR_BAD_CERT); */
|
||||||
goto leave;
|
/* goto leave; */
|
||||||
}
|
/* } */
|
||||||
|
|
||||||
/* Is this certificate allowed to act as a CA. */
|
/* Is this certificate allowed to act as a CA. */
|
||||||
err = allowed_ca (subject_cert, NULL);
|
err = allowed_ca (subject_cert, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user