2. Security between connecting clients and the replica set using User Access Controls.
Use openssl command to generate a complex pseudo-random 1024 character string to use for a keyfile.
Next, Copy the keyfile to each replica set.
To Enable authentication for each member of all the config servers, shared cluster or Replica Set specify the keyfile in configuration file. Use a consistent location for each server.