MacOS & LetsEncrypt & Certbot

--

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”

* (start) indicates that cert is being created for wildcard domains

Step 4: While it is waiting for verification, goto your Domain’s DNS Management Console and add a TXT record with name and value as

Type: TXT

Name/Host: _acme-challenge

Note: Do not append your domain at the end

Value: RD08ewENwG9eAa4PEkoDjvAtEIkwKF4ZLMd8aaAxKM4

Note: Above value is just an example, it will be different for different domains and time of generation

Note: the domain name is automatically appended for _acme-challenge

Step 5: press “Enter”

That’s it!

--

--

Tharakesh Pulikonda
Tharakesh Pulikonda

Written by Tharakesh Pulikonda

No certifications, Not a IITian, Not a celebrity but a coder, systems builder, solutioneer

No responses yet