Skip to content

Commit

Permalink
debug certificate permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Sep 9, 2024
1 parent c44d517 commit c2737e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cont-init.d/50_configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ echo "Current User: $(whoami)"
# secrets `uid`, `gid` and `mode` are not supported, they will be ignored
CERT_FILE_KEY="$(tedge config get device.key_path)"
# chmod 600 "$CERT_FILE_KEY"
echo "$CERT_FILE_KEY permissions"
ls -l "$CERT_FILE_KEY"

CERT_FILE_PUB="$(tedge config get device.cert_path)"
echo "$CERT_FILE_PUB permissions"
ls -l "$CERT_FILE_PUB"
# chmod 644 "$CERT_FILE_PUB"

# Support variable set by go-c8y-cli
Expand All @@ -23,6 +27,7 @@ fi
MAPPERS="c8y az aws"
for MAPPER in $MAPPERS; do
if tedge config get "${MAPPER}.url" 2>/dev/null; then
tedge reconnect "$MAPPER" ||:
# Don't perform a connection test
tedge connect "$MAPPER" --offline ||:
fi
done

0 comments on commit c2737e8

Please sign in to comment.