From 3b30dbf3b443065922ea56cb7d311a6aee9d0eb8 Mon Sep 17 00:00:00 2001 From: fsagbuya Date: Tue, 4 Nov 2025 17:29:23 +0800 Subject: [PATCH] docs: clarify multiple client certificate support --- doc/index.rst | 4 ++-- sipyco/common_args.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/index.rst b/doc/index.rst index 2990c46..a4d0025 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -145,12 +145,12 @@ Run the following command twice, once with server filenames (e.g., ``server.key` .. note:: The ``-subj "/"`` parameter bypasses the interactive prompts for certificate information (country, organization, etc.) that OpenSSL normally requires. -A single client certificate must be shared among multiple clients. This reduces certificate management overhead, as the server only needs to trust one client certificate. SiPyCo's SSL implementation is configured to authenticate based on certificates directly, rather than hostname verification, making this approach secure for trusted environments where certificate distribution is controlled. +The server can trust either single or multiple client certificates. For multiple clients, simply concatenate their certificates into a single peer certificate file (e.g., using ``cat client1.pem client2.pem > trusted_clients.pem``). SiPyCo's SSL implementation is configured to authenticate based on certificates directly, rather than hostname verification, making this approach secure for trusted environments where certificate distribution is controlled. Enabling SSL ------------ -To start with SSL enabled, the server requires its own key and certificate, as well as the certificate of a client to trust. Similarly, the client requires its own key and certificate, as well as the certificate of a server to trust. +To start with SSL enabled, the server requires its own key and certificate, as well as the certificate(s) of client(s) to trust. Similarly, the client requires its own key and certificate, as well as the certificate of a server to trust. **For servers:** diff --git a/sipyco/common_args.py b/sipyco/common_args.py index 71fe019..82c5486 100644 --- a/sipyco/common_args.py +++ b/sipyco/common_args.py @@ -44,7 +44,7 @@ def simple_network_args(parser, default_port, ssl=False): help="Enable SSL authentication: " "CERT: server certificate file, " "KEY: server private key, " - "PEER: client certificate to trust " + "PEER: client certificate(s) to trust " "(default: %(default)s)")