How to verify that a certificate and a private key in pem format match?

Solution In Progress - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.