| 1 |
wolfSSL TLS Module |
| 2 |
|
| 3 |
Shih-Ping Chan |
| 4 |
|
| 5 |
Copyright © 2022 Chan Shih-Ping |
| 6 |
__________________________________________________________________ |
| 7 |
|
| 8 |
Table of Contents |
| 9 |
|
| 10 |
1. Admin Guide |
| 11 |
|
| 12 |
1. Overview |
| 13 |
2. Quick Start |
| 14 |
3. Important Notes |
| 15 |
4. Compiling the wolfSSL TLS Module |
| 16 |
5. Parameters |
| 17 |
|
| 18 |
5.1. crl |
| 19 |
|
| 20 |
List of Examples |
| 21 |
|
| 22 |
1.1. Quick Start Basic Config |
| 23 |
|
| 24 |
Chapter 1. Admin Guide |
| 25 |
|
| 26 |
Table of Contents |
| 27 |
|
| 28 |
1. Overview |
| 29 |
2. Quick Start |
| 30 |
3. Important Notes |
| 31 |
4. Compiling the wolfSSL TLS Module |
| 32 |
5. Parameters |
| 33 |
|
| 34 |
5.1. crl |
| 35 |
|
| 36 |
1. Overview |
| 37 |
|
| 38 |
This module implements the TLS transport for Kamailio using the wolfSSL |
| 39 |
library (https://www.wolfssl.com). To enable the Kamailio TLS support |
| 40 |
this module must be loaded and enable_tls=yes core setting must be |
| 41 |
added to the Kamailio config file. |
| 42 |
|
| 43 |
This module is derived from the tls module and adapted to wolfSSL using |
| 44 |
the OpenSSL-compatibility layer. Credit goes to the authors of the tls |
| 45 |
module. |
| 46 |
|
| 47 |
This module is based on wolfSSL 5.2.0 and 5.3.0 and is not fully |
| 48 |
compatible with the tls module (protocol versions < 1.1 not supported |
| 49 |
it the Debian package for example. |
| 50 |
|
| 51 |
This user is referred to the documentation of the tls module for |
| 52 |
configuration and other information. Not all configuration keys are |
| 53 |
implemented (e.g., protocol versions — defaults to 1.2+ and cipher |
| 54 |
suites). |
| 55 |
|
| 56 |
2. Quick Start |
| 57 |
|
| 58 |
The default kamailio.cfg file has basic TLS support included, it has to |
| 59 |
be enabled with "#!define WITH_TLS" directive. |
| 60 |
|
| 61 |
Example 1.1. Quick Start Basic Config |
| 62 |
#... |
| 63 |
loadmodule "sl.so" |
| 64 |
loadmodule "tls_wolfssl.so" |
| 65 |
#... refer to Quick Start of tls module |
| 66 |
#... for further configuration |
| 67 |
|
| 68 |
3. Important Notes |
| 69 |
|
| 70 |
The wolfSSL TLS module is intended to be compiled with a recent version |
| 71 |
of wolfSSL (5.2.0+). |
| 72 |
|
| 73 |
Default compilations of the library will not work with Kamailio's own |
| 74 |
memory allocation. See https://github.com/wolfSSL/wolfssl/issues/5264 |
| 75 |
for more details. |
| 76 |
|
| 77 |
4. Compiling the wolfSSL TLS Module |
| 78 |
|
| 79 |
The development package for wolfSSL is required (libwolfssl-dev or |
| 80 |
equivalent). |
| 81 |
|
| 82 |
In most case compiling the wolfSSL TLS module is as simple as: |
| 83 |
make -C modules/tls_wolfssl |
| 84 |
|
| 85 |
or |
| 86 |
make modules modules=modules/tls_wolfssl |
| 87 |
|
| 88 |
or (compiling whole Kamailio and the tls module) |
| 89 |
make all include_modules=tls_wolfssl |
| 90 |
|
| 91 |
. |
| 92 |
|
| 93 |
5. Parameters |
| 94 |
|
| 95 |
5.1. crl |
| 96 |
|
| 97 |
Important differences to the tls module |
| 98 |
|
| 99 |
5.1. crl |
| 100 |
|
| 101 |
The value is a folder containing PEM CRL files with extension .pem. |