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
I spend some time to find the good way to create own SSL certificate for my apache server running on Raspberry PI. There is a lot of information on the internet for one or tow points bellow, but no one it telling own to make all these requierement working all gether.