aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-02-17 11:58:57 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-02-17 11:58:57 +0100
commit78e23c7af13493663ba39d1bdba04168fa191406 (patch)
tree7a33ac99c1ff2286ee7094bdcafd5a10a34f9218
parent48a9df043df64887cb99e03d7613379c947d11d8 (diff)
downloadBobinkCOpcUa-78e23c7af13493663ba39d1bdba04168fa191406.tar.gz
BobinkCOpcUa-78e23c7af13493663ba39d1bdba04168fa191406.zip
Keep PEM certificate after generation
Stop deleting the PEM certificate so it remains available alongside the DER files. Fix the output listing to show the PEM path.
-rwxr-xr-xtools/generate_certificate.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/generate_certificate.sh b/tools/generate_certificate.sh
index 08bfd28..3b2c54a 100755
--- a/tools/generate_certificate.sh
+++ b/tools/generate_certificate.sh
@@ -48,9 +48,9 @@ openssl x509 -in "$certs_dir/${name}_cert.pem" -outform der \
openssl rsa -in "$certs_dir/${name}_key.pem" -outform der \
-out "$certs_dir/${name}_key.der" 2>/dev/null
-rm -f "$certs_dir/${name}_cert.pem" "$certs_dir/${name}_key.pem" "$cnf"
+rm -f "$certs_dir/${name}_key.pem" "$cnf"
echo "Generated certificate '$name' (CN=$cn, URI=$uri):"
echo " $certs_dir/${name}_cert.der"
-echo " $certs_dir/${name}_key.der"
+echo " $certs_dir/${name}_cert.pem"
echo " $certs_dir/${name}_key.der"