Skip to content

Commit

Permalink
Merge pull request #121 from SoftwareAG/feature/MTM-59554/mqtt-X509-c…
Browse files Browse the repository at this point in the history
…ert-auth-leaf

[MTM-59554] allow to export only device certificate optionally
  • Loading branch information
sguhc8y authored Jul 18, 2024
2 parents eeaa56b + 4bbd45f commit c892c56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mqtt-client/scripts/02moveCertificatesToKeystore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ set -x
NAME=iot-device-0001
FILES_WITH_CERTIFICATES="$NAME-cert.pem iot-cert.pem"

# Check for the --leafonly option
if [[ "$1" == "--leafonly" ]]; then
FILES_WITH_CERTIFICATES="$NAME-cert.pem"
fi

rm chain-$NAME.pem chain-with-private-key-$NAME.p12 chain-with-private-key-$NAME.jks || echo "Nothing to remove"

cat $FILES_WITH_CERTIFICATES > chain-$NAME.pem
Expand Down

0 comments on commit c892c56

Please sign in to comment.