Hi,
Yes, even with the CP4BA trial, you generally have options to import / trust certificates (either at the OpenShift/cluster level, or by providing a component-specific truststore).
Regarding the 301/302: for Microsoft OAuth, it’s usually a sign that the request is not hitting the token endpoint in the expected way (wrong URL such as /authorize instead of /token, wrong HTTP method, or missing Content-Type: application/x-www-form-urlencoded). In some environments, a proxy/gateway can also trigger redirects.
I would therefore encourage you to first check the Location response header to see where it redirects, and to confirm you are doing a POST to:
https://login.microsoftonline.com/<tenant>/oauth2/v2.0/token with a form-encoded body.