Thank you very much for the reply Walter.
I have done several tests but it keeps giving me the same error.
Could you tell me or point out the steps and how to do it from the generation of the self-signed certificate to the change of configuration so that instead of using the keyfile authentication that is what I have now, the x509 authentication can be used for only internal authentication between the nodes of the replica set?