diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-17 13:39:30 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-17 13:39:30 +0100 |
| commit | 79b631a2572748606431fd4e3c1ee38a47cad5a9 (patch) | |
| tree | 43b29b4b510d76123b8f486fa8f528c6f200229e /tools | |
| parent | 5ae0aa3e092c56ee856a1c47d2978af00c108451 (diff) | |
| download | BobinkCOpcUa-79b631a2572748606431fd4e3c1ee38a47cad5a9.tar.gz BobinkCOpcUa-79b631a2572748606431fd4e3c1ee38a47cad5a9.zip | |
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)
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/generate_certificate.sh | 12 |
1 files changed, 11 insertions, 1 deletions
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.<name> +# +# Produces: +# <certs_dir>/<name>_cert.der — DER-encoded X.509 certificate +# <certs_dir>/<name>_cert.pem — PEM-encoded X.509 certificate +# <certs_dir>/<name>_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 <certs_dir> <name> [uri]" >&2 |
