1. Install certbot on MacOs:

brew install certbot

2. Launch certbot on manual mode:

$ sudo certbot certonly --manual

3. Enter domain name:

Please enter in your domain name(s) (comma and/or space separated)  (Enter 'c' to cancel): devis.cool

4. Agree for the IP being logged:

Are you OK with your IP being logged? Y

5. You will receive instructions to create a file and make it available on your webserver:

 

6. After completing previous step certificates will be generated: