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.
- Host: GitHub
- URL: https://github.com/mikunalpha/acmed
- Owner: mikunalpha
- License: apache-2.0
- Created: 2017-02-21T06:47:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-26T02:58:09.000Z (about 8 years ago)
- Last Synced: 2025-01-30T00:41:19.217Z (5 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.