Re: adding CA certificates (for use by sendmail)

Liste des GroupesRevenir à cm sendmail 
Sujet : Re: adding CA certificates (for use by sendmail)
De : bjorn (at) *nospam* mork.no (Bjørn Mork)
Groupes : comp.mail.sendmail
Date : 13. Nov 2024, 21:05:56
Autres entêtes
Organisation : m
Message-ID : <87h68a526z.fsf@miraculix.mork.no>
References : 1 2 3 4 5
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Claus Aßmann
<INVALID_NO_CC_REMOVE_IF_YOU_DO_NOT_POST_ml+sendmail(-no-copies-please)@esmtp.org>
writes:
Bjørn Mork  wrote:
>
Note that CACertPath is for validating servers you connect to
(STARTTLS=client), while CACertFile is for validating clients connecting
to you (STARTTLS=server).
>
Please explain why you think this is the case.
SSL_CTX_load_verify_locations(*tls_ctx, cacertfile, cacertpath)
is invoked in inittls() - for server and client side.

Mainly based on experiments with all sorts of combinations.  But looking
at the code also seems to confirm.  The rest of that block is:

               if ((r = SSL_CTX_load_verify_locations(*ctx, cacertfile,
                                                       cacertpath)) == 1)
                {
# if !TLS_NO_RSA && MTA_RSA_TMP_CB
                        if (bitset(TLS_I_RSA_TMP, req))
                                SSL_CTX_set_tmp_rsa_callback(*ctx, tmp_rsa_key);
# endif

                        if (srv)
                        {
                                SSL_CTX_set_client_CA_list(*ctx,
                                        SSL_load_client_CA_file(cacertfile));
                        }
                }


And the important distinction I wanted to make is theq
SSL_CTX_set_client_CA_list() call, which makes cacertfile special wrt
client certificates.

Sorry if I've misunderstood something and causing confusion here.  But I
did just have a fight with sendmail over this, trying to make it accept
only my private CA for client certificates.


Bjørn

Date Sujet#  Auteur
13 Nov 24 * adding CA certificates (for use by sendmail)14Wolfgang Agnes
13 Nov 24 `* Re: adding CA certificates (for use by sendmail)13Grant Taylor
13 Nov 24  +* Re: adding CA certificates (for use by sendmail)11John D Groenveld
13 Nov 24  i`* Re: adding CA certificates (for use by sendmail)10Bjørn Mork
13 Nov 24  i `* Re: adding CA certificates (for use by sendmail)9Claus Aßmann
13 Nov 24  i  `* Re: adding CA certificates (for use by sendmail)8Bjørn Mork
9 Jan 25  i   `* Trusted CA config (was: Re: adding CA certificates (for use by sendmail))7Bjørn Mork
10 Jan 25  i    `* Re: Trusted CA config (was: Re: adding CA certificates (for use by sendmail))6Claus Aßmann
11 Jan 25  i     `* Re: Trusted CA config5Grant Taylor
11 Jan 25  i      +* Re: Trusted CA config2Andreas S. Kerber
11 Jan 25  i      i`- Re: Trusted CA config1Grant Taylor
12 Jan 25  i      `* Re: Trusted CA config2Bjørn Mork
22 Jan 25  i       `- Re: FFRs1Claus Aßmann
19 Nov 24  `- Re: adding CA certificates (for use by sendmail)1Wolfgang Agnes

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal