Skip to content

A little go daemon to get certificates of letsencrypt of your webs periodically.

License

Notifications You must be signed in to change notification settings

mikunalpha/acmed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acmed

A little daemon to get certificates of letsencrypt of your webs periodically.
Modified from https://github.com/google/acme command line tool.

Notice

You need to proxy the challenge request to acmed.
For exmple, add proxy rule to your nginx:

location ^~ /.well-known/acme-challenge/ {
  proxy_pass your_acmed_host:4402;
}

You should try staging environment of letsencrypt before using production environment. See https://letsencrypt.org/docs/staging-environment/ .

If you modified the acmed.json, you need to restart the acmed.

Install

go get -u github.com/mikunalpha/acmed

Usage

Create a acmed.json file in current folder as below:

{
  "server": {
    "address": "0.0.0.0:4402",
    "webs": [{
      "email": "example@email.com",
      "domain": "example.domain.com",
      "disco": "https://acme-staging.api.letsencrypt.org/directory",
      "remain": 21,
      "bundle": true
    }]
  }
}

Run the command

// Just once
acmed run

// Run as a daemon
acmed server

Then a folder named webs should created and certificate and key of example.domain.com should under webs/example.domain.com folder.

About

A little go daemon to get certificates of letsencrypt of your webs periodically.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages