Authorization Error: Unauthorized access'.
VCF 9.x
The The token_signing_key.json file, which stores the JSON Web Keys (JWK) used for secure inter-service communication between VCF Operations and SDDC Manager, has become corrupted or empty. This causes the SDDC Manager API to return an internal server error (500) when the VCF Adapter attempts to synchronize authorization tokens.
cd /etc/vmware/vcf/commonsvcs/mv token_signing_key.json token_signing_key.json.bak curl -k https://<VCF-Ops-Primary-fqdn>/suite-api/.well-known/openid-configuration{"issuer":"vcf_ops-#########-####-####-####-#############","jwks_uri":"https://<VCF-OPS-Primary-fqdn>/suite-api/jwks"}https://<VCF-OPS-Primary-fqdn>/suite-api/jwks{"keys":[{"kty":"RSA","e":"AQAB","kid":"####################################"}]}token=$(curl -X POST -H "Content-Type: application/json" -d '{"username": "[email protected]","password": "<password>"}' --insecure https://<sddc-manager>/v1/tokens | jq -r '.accessToken')curl -k -X POST 'https://<sddc-manager>/v1/tokens/signing-keys' -H "Content-Type: application/json" -H "Authorization: Bearer $token" -d '{"issuer":"vcf_ops-#########-####-####-####-#############","keys":[{"kty":"RSA","e":"AQAB","kid":"####################################"}]}'
curl -X GET -H "Authorization: Bearer $token" --insecure https://<sddc-manager>/v1/tokens/signing-keys | json_pp/etc/vmware/vcf/commonsvcs/token_signing_key.json has the JWT keys