From 79b631a2572748606431fd4e3c1ee38a47cad5a9 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Tue, 17 Feb 2026 13:39:30 +0100 Subject: Add comments to build files and shell scripts, fix minor inconsistencies - CMakeLists.txt: add file-level comment, section banners, target docs, and test-section explanation - cmake/BuildDeps.cmake: add file-level comment describing the configure/build/install workflow - tools/generate_certificate.sh: document arguments and outputs in header block, comment set -euo pipefail - src/config.h: move include guard before Doxygen block (match common.h) - src/server_register.c: add comment to empty anonymous-auth block (match client_find_servers.c) --- tools/generate_certificate.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/generate_certificate.sh b/tools/generate_certificate.sh index 3b2c54a..81fe947 100755 --- a/tools/generate_certificate.sh +++ b/tools/generate_certificate.sh @@ -2,8 +2,18 @@ # generate_certificate.sh — Create a self-signed X.509 certificate for # open62541 OPC UA applications. Outputs DER-encoded certificate and # private-key files suitable for the demo programs in this project. +# +# Arguments: +# $1 certs_dir — output directory for generated files (created if missing) +# $2 name — identity name (e.g. "ServerLDS", "ClientFindServers") +# $3 uri — (optional) application URI; defaults to urn:bobink. +# +# Produces: +# /_cert.der — DER-encoded X.509 certificate +# /_cert.pem — PEM-encoded X.509 certificate +# /_key.der — DER-encoded RSA private key -set -euo pipefail +set -euo pipefail # Fail fast; no unset vars; catch pipe failures. if [ $# -lt 2 ] || [ $# -gt 3 ]; then echo "Usage: generate_certificate.sh [uri]" >&2 -- cgit v1.2.3