From 7cc972d5c74f569e45b043282bc9001682f48417 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Wed, 13 May 2026 13:22:31 +0200 Subject: [PATCH] Use DER CA cert in multi-msg-record test for NO_CODING builds wolfSSL builds configured with --enable-coding=no cannot parse PEM because base64 decoding is disabled. Switch the example client's -A argument to ca-cert.der so the test works in both PEM-enabled and PEM-disabled builds. --- scripts/multi-msg-record.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/multi-msg-record.py b/scripts/multi-msg-record.py index 5f40430773..017934deb2 100755 --- a/scripts/multi-msg-record.py +++ b/scripts/multi-msg-record.py @@ -186,9 +186,13 @@ def _listen_socket(): def _run_wolf_client(port, version, cipher, extra=()): - """Invoke the wolfSSL example client against 127.0.0.1:port.""" + """Invoke the wolfSSL example client against 127.0.0.1:port. + + Uses the DER-encoded CA cert so the test works with wolfSSL builds + configured with NO_CODING (base64 decode disabled, no PEM support). + """ cmd = [WOLF_CLIENT, "-h", "127.0.0.1", "-p", str(port), - "-v", version, "-A", os.path.join(CERT_DIR, "ca-cert.pem"), + "-v", version, "-A", os.path.join(CERT_DIR, "ca-cert.der"), "-g", *extra] if cipher: cmd.extend(["-l", cipher])