How to verify that a certificate and a private key in pem format match?
Issue
Undercloud install fails in post-configure phase.
grep haproxy
(...)
un 27 15:57:30 <hostname> haproxy-systemd-wrapper: [ALERT] 178/155730 (29371) : parsing [/etc/haproxy/haproxy.cfg:23] : 'bind <ip>:13777' : inconsistencies between private key and certificate loaded from PEM file '/etc/pki/instack-certs/undercloud.pem'.
(...)
How to verify that a certificate and a private key in pem format match?
Environment
Red Hat Enterprise Linux OpenStack Platform 7.0
Red Hat OpenStack Platform 8.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.