You will find in the following post the detail about all the command used in the script, but if you want quick setup you can use this script and is doing all these steps:
Creation of the cert authority
Creation of the server certificate
Creation of the client certificate
Provide the line for the AuthUserFile… Read the rest