If you read your error message carefully:
then it looks like Prometheus is trying to talk to an http:// endpoint; but you said it was https://.
Put "scheme: https" in your scrape job config to use https. If your certificate is not signed by a public CA like LetsEncrypt then you may need additional settings to get the certificate validation to work.
If that's not the problem, then it's probably an issue with kubernetes or openshift, not prometheus.