<p>I tried to create a cluster in Openshift 4.2 (RHCOS) environment. I have own local DNS server and HA proxy server. I created 3 master and 2 worker nodes in VMware Environment as per the documentation. At the end of the new cluster creation I'm getting an error :</p>

<blockquote>
  <p>Unable to connect to the server: x509: certificate has expired or is
  not yet valid</p>
</blockquote>

<p>Does anyone have an idea why am I getting this error?</p>

<p>It's an ignition file problem.When we create a ignition file, we have to finish the installation with in 24 hours.Because the ignition files contains certificate and it will expires in 24 hours.</p>

<p><a href="https://i.stack.imgur.com/7EodN.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7EodN.jpg" alt="RHCOS Documentation"></a></p>
