Grant executable permission if needed:
chmod +x generage
Generate certificate:
./generate mydomain.test
Function above will generage certificate for mydomain.test
and www.mydomain.test
domain.
It will create mydomain.test
folder that contains the certificate.