@cdr0/go-certbot

1.0.0 • Public • Published

go-certbot

A npx-able repo to invoke certbot to do its thing.

TL; DR

To create a cert for my.example.com:

npx github:briancsparks/go-certbot example.com my.example.com me@example.com
ls -l ~/.go-certbot/certs/config/live/my.example.com

Details

Uses Let's Encrypt (certbot) to generate a server certificate for your subdomain. For example, my.example.com, using Route-53 as the DNS challenge responder.

  • Uses AWS Route-53 to prove to certbot that you control the owning domain (example.com.)
    • So, obviously, you must own the domain and manage it with Route-53.
    • You must have AWS credentials setup on the machine running go-certbot.
  • Must have certbot installed. If not, see below.

Installing certbot

Ubuntu:

sudo apt-add-repository -y ppa:certbot/certbot
sudo apt-get update
sudo apt-get install -y certbot

Results

The results are put into ~/.go-certbot/...

  • The cert: ~/.go-certbot/certs/config/live/my.example.com/fullchain.pem
  • The key: ~/.go-certbot/certs/config/live/my.example.com/privkey.pem

Other

The commands that I always end up needing next are at:

Readme

Keywords

none

Package Sidebar

Install

npm i @cdr0/go-certbot

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

12.5 kB

Total Files

7

Last publish

Collaborators

  • briancsparks