Generating ssl certs using letsencrypt, certbot on MacOS
Step 1 : Install homebrew following this link https://brew.sh/
Step 2 : Install certbot using brew

Step 3: Run the following command
sudo certbot certonly \
— manual \
— preferred-challenges=dns \
— email mysupportemail@mydomain.com \
— server https://acme-v02.api.letsencrypt.org/directory \
— agree-tos \
-d “*.mydomain.com”