Openshift router certificate error: unable to load SSL private key from PEM file

Solution Verified - Updated -

Issue

  • While deploying a router, getting below error;
E0812 15:21:03.359503       1 limiter.go:137] error reloading router: exit status 1
[ALERT] 224/152103 (29) : parsing [/var/lib/haproxy/conf/haproxy.config:116] : 'bind 127.0.0.1:10xxx' : inconsistencies between private key and certificate loaded from PEM file '/etc/pki/tls/private/tls.crt'.
[ALERT] 004/174016 (31) : parsing [/var/lib/haproxy/conf/haproxy.config:116] : 'bind 127.0.0.1:10444' : unable to load SSL private key from PEM file '/etc/pki/tls/private/tls.crt'.
[ALERT] 004/174016 (31) : parsing [/var/lib/haproxy/conf/haproxy.config:153] : 'bind 127.0.0.1:10443' : unable to load SSL private key from PEM file '/etc/pki/tls/private/tls.crt'.

Environment

  • Red Hat OpenShift Container Platform
    • v3.11

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