Skip to content
Aa

xcsh — Maintain

Supply renewed <XCSH_RENEWED_CERT_FILE> and matching <XCSH_RENEWED_KEY_FILE> with the same key algorithm for a referenced certificate. Prepare the replacement and inspect its preview:

Terminal window
xcsh blindfold certificate --cert "$XCSH_RENEWED_CERT_FILE" --key "$XCSH_RENEWED_KEY_FILE" \
--name "$XCSH_CERT_NAME" -n "$XCSH_NAMESPACE" --output-file certificate2.json \
> certificate2-prepared.json 2> certificate2-prepared.err
xcsh apply -f certificate2.json -n "$XCSH_NAMESPACE" --dry-run client -o json \
> certificate2-preview.json 2> certificate2-preview.err

Apply the replacement to the same name:

Terminal window
xcsh apply -f certificate2.json -n "$XCSH_NAMESPACE" -o json \
> certificate2-apply.json 2> certificate2-apply.err

Expect updated; verify the served certificate at your endpoint after propagation.