#!/usr/bin/env bash # Print one page of certificate inventory. Use the returned next_after to continue. set -euo pipefail : "${SSLNEXUS_URL:?Set the HTTPS admin origin}" "${SSLNEXUS_TOKEN:?Set a credential with read scope}" curl --proto '=https' --silent --show-error --fail-with-body \ --header "Authorization: Bearer $SSLNEXUS_TOKEN" \ --get --data-urlencode "limit=100" --data-urlencode "after=${SSLNEXUS_AFTER:-}" \ "${SSLNEXUS_URL%/}/api/v1/certificates"