Error: Requested host www.example.com was rejected by the router on RHOCP Console

Solution Verified - Updated -

Issue

  • Getting the following error on the OCP console
The requested host www.example.com was rejected by the router. Reason: - spec.tls.key: Invalid value: "redacted key data": tls: failed to find PEM block with type ending in "PRIVATE KEY" in key input after skipping PEM blocks of the following types: [CERTIFICATE CERTIFICATE].
  • An authentication POD is crashlooping with the error log:
2022-04-06T00:08:50.632680055Z I0406 00:08:50.630161       1 dynamic_serving_content.go:111] Loaded a new cert/key pair for "serving-cert::/var/config/system/secrets/v4-0-config-system-serving-cert/tls.crt::/var/config/system/secrets/v4-0-config-system-serving-cert/tls.key"
2022-04-06T00:08:50.632680055Z F0406 00:08:50.630572       1 cmd.go:49] failed to load SNI cert and key: tls: failed to find PEM block with type ending in "PRIVATE KEY" in key input after skipping PEM blocks of the following types: [CERTIFICATE CERTIFICATE]

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 3
    • 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content