letsencrypt

command module
v0.0.0-...-3f1a08c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2021 License: BSD-3-Clause Imports: 24 Imported by: 0

README

go let's encypt

A simple program in go enabling easy certificate renewal

get

go get github.com/eelf/letsencrypt

provide config

see schema for config syntax example:

{
	"accounts": {
		"main": "letsencrypt_account.key"
	},
	"domains": {
		"example.com": {
			"account": "main",
			"remote": "domain_or_ssh_config_hostname",
			"token_dir": "/path/to/example.com/www/.well-known/acme-challenge",
			"private": "/path/to/example.com.key",
			"cert": "/path/to/example.com.cert"
		}
	}
}

(optional) validate your config

go get github.com/eelf/jsonschemacheck jsonschemacheck ~/go/pkg/mod/github.com/eelf/letsencrypt*/config.schema.json path/to/config.json

update domain certificate

letsencrypt path/to/config.json example.com

for remote domain User Port Hostname are taken from ~/.ssh/config if any ssh-agent should contain key for that host

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL