Setting up a local mongodb with x509 authentication

Hi! I am trying to setup x509 authentication with a local mongodb server using self-signed certificate. However, I am having a hard time finding a document that will walk me thru this type of configuration. I am new to mongodb. Help please.