cern-fts / davix

High-performance file management over WebDAV / HTTP
GNU Lesser General Public License v2.1
84 stars 36 forks source link

Add support for CA certificate file in addition to a CA directory #117

Open amadio opened 7 months ago

amadio commented 7 months ago

Davix supports setting a custom CA directory via addCertificateAuthorityPath(). However, it seems that overriding the CA with a file instead of a directory is not supported. In XRootD, the variable X509_CERT_FILE is used to set this. It would be great if Davix implemented the same functionality so that xrdcl-http would automatically work when that variable is set. See also https://github.com/xrootd/xrootd/issues/2136. Support for the CA path is done here in XRootD. If an addCertificateAuthorityFile() is provided by Davix, we could use it in the same place to set the file path.