MongoDB rs.initiate error: replSetInitiate quorum check failed because not all proposed set members responded affirmatively

Your mongo node can not get the heartbeat (replSetHeartbeat) of the ones he is trying to connect to, in order to configure the replica set. This is because you have activated access control in the cluster.

When you activate mongo access control, you need to configure the internal authentication between the nodes of your replica set.

There are two different ways to do this:

  • Using a Keyfile
  • Using x509 auth (as you need)

You should follow the official documentation I referenced above.