Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
franramirez688 committed Feb 6, 2023
1 parent 06ee5e4 commit dc86bac
Show file tree
Hide file tree
Showing 6 changed files with 554 additions and 543 deletions.
1 change: 0 additions & 1 deletion reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ Reference
reference/conanfile
reference/conanfile_txt
reference/tools
reference/profiles
reference/configuration_files
reference/extensions
2 changes: 2 additions & 0 deletions reference/commands/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ conan config home
$ conan config home
.. _reference_commands_conan_config_install:
conan config install
--------------------
Expand Down
26 changes: 18 additions & 8 deletions reference/configuration_files/client_certificates.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
.. _client_certificates:


client.crt / client.key
=======================
Client certificates
===================

Conan support client TLS certificates. Create a *client.crt* with the client certificate in the
Conan home directory (default *~/[CONAN_HOME]/*) and a *client.key* with the private key.
Conan supports client TLS certificates. You can configure the path to your existing *Cacert* file and/or your client
certificate (and the key) using the following configuration variables:

You could also create only the ``client.crt`` file containing both the certificate and the private key
concatenated.
* ``core.net.http:cacert_path``: Path containing a custom Cacert file.
* ``core.net.http:client_cert``: Path or tuple of files containing a client cert (and key).

Alternatively, you can define a path to those files in whichever location using the `client_cert_path` and
`client_cert_key_path` configuration entries in the :ref:`conan_conf`.
For instance:

.. code-block::
:caption: **[CONAN_HOME]/global.conf**
core.net.http:cacert_path=/path/to/cacert_file
core.net.http:client_cert=/path/to/client_certificate
.. seealso::

You can see more information about configurations in :ref:`global.conf section <conan_global_conf>`.
Loading

0 comments on commit dc86bac

Please sign in to comment.