Score:0

What are all the certificates mandatory to be provide while setting TLSVerifyClient option to demand

eg flag

In my case, I had set TLSVerifyClient to demand. I couldn't be able to establish a connection While providing TLSCACertificateFile alone.

While setting the TLSVerifyClient option demand is it mandatory to provide the following option or TLSCACertificateFile is enough?

TLSCACertificateFile

TLSCertificateKeyFile

TLSCertificateFile

Regards,

Ram

Score:0
in flag

By setting TLSVerifyClient to anything different than never you allow mutual TLS.

As implied already in the name: mutual SSL/TLS requires that both client and server authenticate themselves with certificates.

The mechanism of TLS client authentication (only) sends the client certificate over TLS, as part of the authentication handshake.

On the server that requires and means you can't do without:

  • a server certificate TLSCertificateFile
  • the associated private key TLSCertificateKeyFile for the server certificate
  • additionally the certificate authority that is trusted to issue client certificates is needed. TLSCACertificateFile <filename> OR TLSCACertificatePath <path>

As a nice curiosity: the certificate authority that is trusted to issue client certificates does not have to be same one that issues the server certificate. Typically it is not. Your server certificate for example is issued by Let’sEncrypt and you would use an internal CA for client certificates.


On the client you first need to trust the CA certificate (chain) used to issue the server certificate. Often that doesn’t need to be configured explicitly as the system defaults for the client often already have the correct trusts built in. That is governed by the client settings: TLS_CACERT and/or TLS_CACERTDIR.

Then for the client to identify itself with mutual TLS it needs its own certificate and associated private key. Set with TLS_CERT respectively TLS_KEY directives.

ram ajay avatar
eg flag
Hi HBruijn, Sorry for the inconvenience. I thought user tag will define those items. I facing problems in the LDAP server and LDAP client.
HBruijn avatar
in flag
My apologies but for me tags are no substitute for information that belongs in the question itself.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.