![]() |
TSDuck v3.46-4965
MPEG Transport Stream Toolkit
|
#include <tsTLSServerBase.h>

Public Member Functions | |
| virtual | ~TLSServerBase () |
| const UString & | getCertificatePath () const |
| const UString & | getCertificateStore () const |
| size_t | getEphemeralRSABits () const |
| const UString & | getKeyPath () const |
| void | setArgs (const TLSArgs &args) |
| void | setCertificatePath (const UString &path) |
| void | setCertificateStore (const UString &name) |
| void | setEphemeralRSABits (size_t bits) |
| void | setKeyPath (const UString &path) |
Static Public Attributes | |
| static constexpr size_t | DEFAULT_RSA_BITS = 3072 |
Protected Member Functions | |
| TLSServerBase ()=default | |
Common properties for all forms of SSL/TLS server.
|
virtual |
Virtual destructor.
|
protecteddefault |
Constructor is accessible to subclasses only.
|
inline |
Set command line arguments for the server.
| [in] | args | TLS arguments. |
|
inline |
Set the certificate path for the server.
| [in] | path | Path to the certificate.
|
|
inline |
Get the certificate path for the server.
|
inline |
Set the private key path for the server.
| [in] | path | Path to the private key.
|
|
inline |
Get the private key path for the server.
|
inline |
Set the certificate store.
| [in] | name |
|
|
inline |
Get the certificate store.
|
inline |
Specify to use an ephemeral self-signed certificate with an ephemeral RSA key of the specified size.
| [in] | bits | Size in bits of the ephemeral RSA key. When set to zero, no ephemeral self-signed certificate is used and a persistent certificate must be used. |
| size_t ts::TLSServerBase::getEphemeralRSABits | ( | ) | const |
Get the size in bits of the ephemeral RSA key which is used for the ephemeral self-signed certificate.
|
staticconstexpr |
Default key size in bits of ephemeral RSA keys when no certificate is specified.
When no parameter specifies how the certificate shall be retrieved or generated, a default ephemeral self-signed certificate is generated using a random RSA key of that size.