An open API service indexing awesome lists of open source software.

https://github.com/mikunalpha/acmed

A little go daemon to get certificates of letsencrypt of your webs periodically.
https://github.com/mikunalpha/acmed

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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:
```json
{
"server": {
"address": "0.0.0.0:4402",
"webs": [{
"email": "[email protected]",
"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.