]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add a test for loading certificate and key to ssl context
authorSelva Nair <selva.nair@gmail.com>
Fri, 6 Sep 2024 10:38:14 +0000 (12:38 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 8 Sep 2024 20:45:55 +0000 (22:45 +0200)
commit0fe3a9877468ecfb3b97c67ecca5495eed7a8683
tree9d1e6de1a58eeaf7cd5d57f24e10f6e4d7eeacb4
parent3512e8d3ada4fa7d04925a89fd9f3669655c7887
Add a test for loading certificate and key to ssl context

The test certificate used in test_ssl.c is updated to use 2048 bit
RSA and the matching key is added.

Tests include loading certificate and key as inlined pem as well as
from files. Note that loading the key also checks that it matches
the certificate, providing an indirect test that the latter was loaded
correctly.

Change-Id: Ic6f089896191145f68ce9a11023587d05dcec4d8
Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20240906103814.36839-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29074.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/unit_tests/openvpn/test_ssl.c