mirror of
https://github.com/go-acme/lego.git
synced 2024-12-22 07:12:22 +02:00
Use canonical imports (#822)
* fix: challenge are not required for revoke.
This commit is contained in:
parent
62fea05e21
commit
219222fdda
10
CHANGELOG.md
10
CHANGELOG.md
@ -316,8 +316,8 @@
|
||||
## [0.1.0] - 2015-12-03
|
||||
- Initial release
|
||||
|
||||
[0.3.1]: https://github.com/xenolf/lego/compare/v0.3.0...v0.3.1
|
||||
[0.3.0]: https://github.com/xenolf/lego/compare/v0.2.0...v0.3.0
|
||||
[0.2.0]: https://github.com/xenolf/lego/compare/v0.1.1...v0.2.0
|
||||
[0.1.1]: https://github.com/xenolf/lego/compare/v0.1.0...v0.1.1
|
||||
[0.1.0]: https://github.com/xenolf/lego/tree/v0.1.0
|
||||
[0.3.1]: https://github.com/go-acme/lego/compare/v0.3.0...v0.3.1
|
||||
[0.3.0]: https://github.com/go-acme/lego/compare/v0.2.0...v0.3.0
|
||||
[0.2.0]: https://github.com/go-acme/lego/compare/v0.1.1...v0.2.0
|
||||
[0.1.1]: https://github.com/go-acme/lego/compare/v0.1.0...v0.1.1
|
||||
[0.1.0]: https://github.com/go-acme/lego/tree/v0.1.0
|
||||
|
@ -44,8 +44,8 @@ cd $GOPATH/src/github.com/xenolf
|
||||
git clone git@github.com:YOUR_USERNAME/lego.git
|
||||
cd lego
|
||||
|
||||
# Add the xenolf/lego remote
|
||||
git remote add upstream git@github.com:xenolf/lego.git
|
||||
# Add the go-acme/lego remote
|
||||
git remote add upstream git@github.com:go-acme/lego.git
|
||||
git fetch upstream
|
||||
```
|
||||
|
||||
|
2
Makefile
2
Makefile
@ -2,7 +2,7 @@
|
||||
|
||||
SRCS = $(shell git ls-files '*.go' | grep -v '^vendor/')
|
||||
|
||||
LEGO_IMAGE := xenolf/lego
|
||||
LEGO_IMAGE := go-acme/lego
|
||||
MAIN_DIRECTORY := ./cmd/lego/
|
||||
BIN_OUTPUT := dist/lego
|
||||
|
||||
|
52
README.md
52
README.md
@ -2,11 +2,9 @@
|
||||
|
||||
Let's Encrypt client and ACME library written in Go.
|
||||
|
||||
[![GoDoc](https://godoc.org/github.com/xenolf/lego?status.svg)](https://godoc.org/github.com/xenolf/lego/acme)
|
||||
[![Build Status](https://travis-ci.org/xenolf/lego.svg?branch=master)](https://travis-ci.org/xenolf/lego)
|
||||
[![Docker Pulls](https://img.shields.io/docker/pulls/xenolf/lego.svg)](https://hub.docker.com/r/xenolf/lego/)
|
||||
[![Dev Chat](https://img.shields.io/badge/dev%20chat-gitter-blue.svg?label=dev+chat)](https://gitter.im/xenolf/lego)
|
||||
[![Beerpay](https://beerpay.io/xenolf/lego/badge.svg)](https://beerpay.io/xenolf/lego)
|
||||
[![GoDoc](https://godoc.org/github.com/go-acme/lego?status.svg)](https://godoc.org/github.com/go-acme/lego/acme)
|
||||
[![Build Status](https://travis-ci.org/go-acme/lego.svg?branch=master)](https://travis-ci.org/go-acme/lego)
|
||||
[![Docker Pulls](https://img.shields.io/docker/pulls/go-acme/lego.svg)](https://hub.docker.com/r/go-acme/lego/)
|
||||
|
||||
## Features
|
||||
|
||||
@ -19,43 +17,43 @@ Let's Encrypt client and ACME library written in Go.
|
||||
- DNS (dns-01)
|
||||
- TLS (tls-alpn-01)
|
||||
- SAN certificate support
|
||||
- Comes with multiple optional [DNS providers](https://github.com/xenolf/lego/tree/master/providers/dns)
|
||||
- [Custom challenge solvers](https://github.com/xenolf/lego/wiki/Writing-a-Challenge-Solver)
|
||||
- Comes with multiple optional [DNS providers](hhttps://go-acme.github.io/lego/dns)
|
||||
- [Custom challenge solvers](https://go-acme.github.io/lego/usage/library/writing-a-challenge-solver/)
|
||||
- Certificate bundling
|
||||
- OCSP helper function
|
||||
|
||||
lego introduced support for ACME v2 in [v1.0.0](https://github.com/xenolf/lego/releases/tag/v1.0.0). If you still need to utilize ACME v1, you can do so by using the [v0.5.0](https://github.com/xenolf/lego/releases/tag/v0.5.0) version.
|
||||
lego introduced support for ACME v2 in [v1.0.0](https://github.com/go-acme/lego/releases/tag/v1.0.0). If you still need to utilize ACME v1, you can do so by using the [v0.5.0](https://github.com/go-acme/lego/releases/tag/v0.5.0) version.
|
||||
|
||||
## Installation
|
||||
|
||||
How to [install](https://xenolf.github.io/lego/installation/).
|
||||
How to [install](https://go-acme.github.io/lego/installation/).
|
||||
|
||||
## Usage
|
||||
|
||||
- as a [CLI](https://xenolf.github.io/lego/usage/cli)
|
||||
- as a [library](https://xenolf.github.io/lego/usage/lib)
|
||||
- as a [CLI](https://go-acme.github.io/lego/usage/cli)
|
||||
- as a [library](https://go-acme.github.io/lego/usage/lib)
|
||||
|
||||
## Documentation
|
||||
|
||||
Documentation is hosted live at https://xenolf.github.io/lego/.
|
||||
Documentation is hosted live at https://go-acme.github.io/lego/.
|
||||
|
||||
## DNS providers
|
||||
|
||||
Detailed documentation is available [here](https://xenolf.github.io/lego/dns).
|
||||
Detailed documentation is available [here](https://go-acme.github.io/lego/dns).
|
||||
|
||||
| | | | |
|
||||
|----------------------------------------------------------------|--------------------------------------------------------------------------------|-------------------------------------------------------------------|------------------------------------------------------------------|
|
||||
| [Alibaba Cloud DNS](https://xenolf.github.io/lego/dns/alidns/) | [Amazon Lightsail](https://xenolf.github.io/lego/dns/lightsail/) | [Amazon Route 53](https://xenolf.github.io/lego/dns/route53/) | [Aurora DNS](https://xenolf.github.io/lego/dns/auroradns/) |
|
||||
| [Azure](https://xenolf.github.io/lego/dns/azure/) | [Bluecat](https://xenolf.github.io/lego/dns/bluecat/) | [ClouDNS](https://xenolf.github.io/lego/dns/cloudns/) | [CloudXNS](https://xenolf.github.io/lego/dns/cloudxns/) |
|
||||
| [Cloudflare](https://xenolf.github.io/lego/dns/cloudflare/) | [ConoHa](https://xenolf.github.io/lego/dns/conoha/) | [DNS Made Easy](https://xenolf.github.io/lego/dns/dnsmadeeasy/) | [DNSPod](https://xenolf.github.io/lego/dns/dnspod/) |
|
||||
| [DNSimple](https://xenolf.github.io/lego/dns/dnsimple/) | [Designate DNSaaS for Openstack](https://xenolf.github.io/lego/dns/designate/) | [Digital Ocean](https://xenolf.github.io/lego/dns/digitalocean/) | [DreamHost](https://xenolf.github.io/lego/dns/dreamhost/) |
|
||||
| [Duck DNS](https://xenolf.github.io/lego/dns/duckdns/) | [Dyn](https://xenolf.github.io/lego/dns/dyn/) | [Exoscale](https://xenolf.github.io/lego/dns/exoscale/) | [External program](https://xenolf.github.io/lego/dns/exec/) |
|
||||
| [FastDNS](https://xenolf.github.io/lego/dns/fastdns/) | [Gandi](https://xenolf.github.io/lego/dns/gandi/) | [Gandi Live DNS (v5)](https://xenolf.github.io/lego/dns/gandiv5/) | [Glesys](https://xenolf.github.io/lego/dns/glesys/) |
|
||||
| [Go Daddy](https://xenolf.github.io/lego/dns/godaddy/) | [Google Cloud](https://xenolf.github.io/lego/dns/gcloud/) | [HTTP request](https://xenolf.github.io/lego/dns/httpreq/) | [Hosting.de](https://xenolf.github.io/lego/dns/hostingde/) |
|
||||
| [INWX](https://xenolf.github.io/lego/dns/inwx/) | [Internet Initiative Japan](https://xenolf.github.io/lego/dns/iij/) | [Joohoi's ACME-DNS](https://xenolf.github.io/lego/dns/acme-dns) | [Linode (deprecated)](https://xenolf.github.io/lego/dns/linode/) |
|
||||
| [Linode (v4)](https://xenolf.github.io/lego/dns/linodev4/) | [Manual](https://xenolf.github.io/lego/dns/manual/) | [MyDNS.jp](https://xenolf.github.io/lego/dns/mydnsjp/) | [NIFCloud](https://xenolf.github.io/lego/dns/nifcloud/) |
|
||||
| [NS1](https://xenolf.github.io/lego/dns/ns1/) | [Name.com](https://xenolf.github.io/lego/dns/namedotcom/) | [Namecheap](https://xenolf.github.io/lego/dns/namecheap/) | [Netcup](https://xenolf.github.io/lego/dns/netcup/) |
|
||||
| [OVH](https://xenolf.github.io/lego/dns/ovh/) | [Open Telekom Cloud](https://xenolf.github.io/lego/dns/otc/) | [Oracle Cloud](https://xenolf.github.io/lego/dns/oraclecloud/) | [PowerDNS](https://xenolf.github.io/lego/dns/pdns/) |
|
||||
| [RFC2136](https://xenolf.github.io/lego/dns/rfc2136/) | [Rackspace](https://xenolf.github.io/lego/dns/rackspace/) | [Sakura Cloud](https://xenolf.github.io/lego/dns/sakuracloud/) | [Selectel](https://xenolf.github.io/lego/dns/selectel/) |
|
||||
| [Stackpath](https://xenolf.github.io/lego/dns/stackpath/) | [TransIP](https://xenolf.github.io/lego/dns/transip/) | [VegaDNS](https://xenolf.github.io/lego/dns/vegadns/) | [Vscale](https://xenolf.github.io/lego/dns/vscale/) |
|
||||
| [Vultr](https://xenolf.github.io/lego/dns/vultr/) | [Zone.ee](https://xenolf.github.io/lego/dns/zoneee/) | | |
|
||||
| [Alibaba Cloud DNS](https://go-acme.github.io/lego/dns/alidns/) | [Amazon Lightsail](https://go-acme.github.io/lego/dns/lightsail/) | [Amazon Route 53](https://go-acme.github.io/lego/dns/route53/) | [Aurora DNS](https://go-acme.github.io/lego/dns/auroradns/) |
|
||||
| [Azure](https://go-acme.github.io/lego/dns/azure/) | [Bluecat](https://go-acme.github.io/lego/dns/bluecat/) | [ClouDNS](https://go-acme.github.io/lego/dns/cloudns/) | [CloudXNS](https://go-acme.github.io/lego/dns/cloudxns/) |
|
||||
| [Cloudflare](https://go-acme.github.io/lego/dns/cloudflare/) | [ConoHa](https://go-acme.github.io/lego/dns/conoha/) | [DNS Made Easy](https://go-acme.github.io/lego/dns/dnsmadeeasy/) | [DNSPod](https://go-acme.github.io/lego/dns/dnspod/) |
|
||||
| [DNSimple](https://go-acme.github.io/lego/dns/dnsimple/) | [Designate DNSaaS for Openstack](https://go-acme.github.io/lego/dns/designate/) | [Digital Ocean](https://go-acme.github.io/lego/dns/digitalocean/) | [DreamHost](https://go-acme.github.io/lego/dns/dreamhost/) |
|
||||
| [Duck DNS](https://go-acme.github.io/lego/dns/duckdns/) | [Dyn](https://go-acme.github.io/lego/dns/dyn/) | [Exoscale](https://go-acme.github.io/lego/dns/exoscale/) | [External program](https://go-acme.github.io/lego/dns/exec/) |
|
||||
| [FastDNS](https://go-acme.github.io/lego/dns/fastdns/) | [Gandi](https://go-acme.github.io/lego/dns/gandi/) | [Gandi Live DNS (v5)](https://go-acme.github.io/lego/dns/gandiv5/) | [Glesys](https://go-acme.github.io/lego/dns/glesys/) |
|
||||
| [Go Daddy](https://go-acme.github.io/lego/dns/godaddy/) | [Google Cloud](https://go-acme.github.io/lego/dns/gcloud/) | [HTTP request](https://go-acme.github.io/lego/dns/httpreq/) | [Hosting.de](https://go-acme.github.io/lego/dns/hostingde/) |
|
||||
| [INWX](https://go-acme.github.io/lego/dns/inwx/) | [Internet Initiative Japan](https://go-acme.github.io/lego/dns/iij/) | [Joohoi's ACME-DNS](https://go-acme.github.io/lego/dns/acme-dns) | [Linode (deprecated)](https://go-acme.github.io/lego/dns/linode/) |
|
||||
| [Linode (v4)](https://go-acme.github.io/lego/dns/linodev4/) | [Manual](https://go-acme.github.io/lego/dns/manual/) | [MyDNS.jp](https://go-acme.github.io/lego/dns/mydnsjp/) | [NIFCloud](https://go-acme.github.io/lego/dns/nifcloud/) |
|
||||
| [NS1](https://go-acme.github.io/lego/dns/ns1/) | [Name.com](https://go-acme.github.io/lego/dns/namedotcom/) | [Namecheap](https://go-acme.github.io/lego/dns/namecheap/) | [Netcup](https://go-acme.github.io/lego/dns/netcup/) |
|
||||
| [OVH](https://go-acme.github.io/lego/dns/ovh/) | [Open Telekom Cloud](https://go-acme.github.io/lego/dns/otc/) | [Oracle Cloud](https://go-acme.github.io/lego/dns/oraclecloud/) | [PowerDNS](https://go-acme.github.io/lego/dns/pdns/) |
|
||||
| [RFC2136](https://go-acme.github.io/lego/dns/rfc2136/) | [Rackspace](https://go-acme.github.io/lego/dns/rackspace/) | [Sakura Cloud](https://go-acme.github.io/lego/dns/sakuracloud/) | [Selectel](https://go-acme.github.io/lego/dns/selectel/) |
|
||||
| [Stackpath](https://go-acme.github.io/lego/dns/stackpath/) | [TransIP](https://go-acme.github.io/lego/dns/transip/) | [VegaDNS](https://go-acme.github.io/lego/dns/vegadns/) | [Vscale](https://go-acme.github.io/lego/dns/vscale/) |
|
||||
| [Vultr](https://go-acme.github.io/lego/dns/vultr/) | [Zone.ee](https://go-acme.github.io/lego/dns/zoneee/) | | |
|
||||
|
@ -1,4 +1,4 @@
|
||||
package api
|
||||
package api // import "github.com/xenolf/lego/acme/api"
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package api
|
||||
package api // import "github.com/xenolf/lego/acme/api"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package api
|
||||
package api // import "github.com/xenolf/lego/acme/api"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package api
|
||||
package api // import "github.com/xenolf/lego/acme/api"
|
||||
|
||||
import (
|
||||
"crypto/x509"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package api
|
||||
package api // import "github.com/xenolf/lego/acme/api"
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package api
|
||||
package api // import "github.com/xenolf/lego/acme/api"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package nonces
|
||||
package nonces // import "github.com/xenolf/lego/acme/api/internal/nonces"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package nonces
|
||||
package nonces // import "github.com/xenolf/lego/acme/api/internal/nonces"
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package secure
|
||||
package secure // import "github.com/xenolf/lego/acme/api/internal/secure"
|
||||
|
||||
import (
|
||||
"crypto"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package secure
|
||||
package secure // import "github.com/xenolf/lego/acme/api/internal/secure"
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package sender
|
||||
package sender // import "github.com/xenolf/lego/acme/api/internal/sender"
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package sender
|
||||
package sender // import "github.com/xenolf/lego/acme/api/internal/sender"
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package sender
|
||||
package sender // import "github.com/xenolf/lego/acme/api/internal/sender"
|
||||
|
||||
// CODE GENERATED AUTOMATICALLY
|
||||
// THIS FILE MUST NOT BE EDITED BY HAND
|
||||
|
@ -1,4 +1,4 @@
|
||||
package api
|
||||
package api // import "github.com/xenolf/lego/acme/api"
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package api
|
||||
package api // import "github.com/xenolf/lego/acme/api"
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package api
|
||||
package api // import "github.com/xenolf/lego/acme/api"
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package api
|
||||
package api // import "github.com/xenolf/lego/acme/api"
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Package acme contains all objects related the ACME endpoints.
|
||||
// https://tools.ietf.org/html/draft-ietf-acme-acme-16
|
||||
package acme
|
||||
package acme // import "github.com/xenolf/lego/acme"
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package acme
|
||||
package acme // import "github.com/xenolf/lego/acme"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package certcrypto
|
||||
package certcrypto // import "github.com/xenolf/lego/certcrypto"
|
||||
|
||||
import (
|
||||
"crypto"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package certcrypto
|
||||
package certcrypto // import "github.com/xenolf/lego/certcrypto"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package certificate
|
||||
package certificate // import "github.com/xenolf/lego/certificate"
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package certificate
|
||||
package certificate // import "github.com/xenolf/lego/certificate"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package certificate
|
||||
package certificate // import "github.com/xenolf/lego/certificate"
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package certificate
|
||||
package certificate // import "github.com/xenolf/lego/certificate"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package challenge
|
||||
package challenge // import "github.com/xenolf/lego/challenge"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package dns01
|
||||
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
|
||||
|
||||
import "github.com/miekg/dns"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package dns01
|
||||
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
|
||||
|
||||
import (
|
||||
"crypto/sha256"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package dns01
|
||||
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package dns01
|
||||
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package dns01
|
||||
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package dns01
|
||||
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
|
||||
|
||||
// ToFqdn converts the name into a fqdn appending a trailing dot.
|
||||
func ToFqdn(name string) string {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package dns01
|
||||
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package dns01
|
||||
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package dns01
|
||||
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
|
||||
|
||||
import (
|
||||
"sort"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package dns01
|
||||
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package dns01
|
||||
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package http01
|
||||
package http01 // import "github.com/xenolf/lego/challenge/http01"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package http01
|
||||
package http01 // import "github.com/xenolf/lego/challenge/http01"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package http01
|
||||
package http01 // import "github.com/xenolf/lego/challenge/http01"
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package challenge
|
||||
package challenge // import "github.com/xenolf/lego/challenge"
|
||||
|
||||
import "time"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package resolver
|
||||
package resolver // import "github.com/xenolf/lego/challenge/resolver"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package resolver
|
||||
package resolver // import "github.com/xenolf/lego/challenge/resolver"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package resolver
|
||||
package resolver // import "github.com/xenolf/lego/challenge/resolver"
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package resolver
|
||||
package resolver // import "github.com/xenolf/lego/challenge/resolver"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package resolver
|
||||
package resolver // import "github.com/xenolf/lego/challenge/resolver"
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package resolver
|
||||
package resolver // import "github.com/xenolf/lego/challenge/resolver"
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package tlsalpn01
|
||||
package tlsalpn01 // import "github.com/xenolf/lego/challenge/tlsalpn01"
|
||||
|
||||
import (
|
||||
"crypto/rsa"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package tlsalpn01
|
||||
package tlsalpn01 // import "github.com/xenolf/lego/challenge/tlsalpn01"
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package tlsalpn01
|
||||
package tlsalpn01 // import "github.com/xenolf/lego/challenge/tlsalpn01"
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import (
|
||||
"crypto"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import (
|
||||
"crypto"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import "github.com/urfave/cli"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import (
|
||||
"github.com/urfave/cli"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@ -37,7 +37,7 @@ func dnsHelp(ctx *cli.Context) error {
|
||||
fmt.Fprintln(w, "All DNS codes:")
|
||||
fmt.Fprintf(w, "\t%s\n", allDNSCodes())
|
||||
fmt.Fprintln(w)
|
||||
fmt.Fprintln(w, "More information: https://xenolf.github.io/lego/dns")
|
||||
fmt.Fprintln(w, "More information: https://go-acme.github.io/lego/dns")
|
||||
|
||||
return w.Flush()
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import (
|
||||
"crypto"
|
||||
@ -53,6 +53,7 @@ func createRenew() cli.Command {
|
||||
|
||||
func renew(ctx *cli.Context) error {
|
||||
account, client := setup(ctx, NewAccountsStorage(ctx))
|
||||
setupChallenges(ctx, client)
|
||||
|
||||
if account.Registration == nil {
|
||||
log.Fatalf("Account %s is not registered. Use 'run' to register a new account.\n", account.Email)
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import (
|
||||
"github.com/urfave/cli"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
@ -47,6 +47,7 @@ func run(ctx *cli.Context) error {
|
||||
accountsStorage := NewAccountsStorage(ctx)
|
||||
|
||||
account, client := setup(ctx, accountsStorage)
|
||||
setupChallenges(ctx, client)
|
||||
|
||||
if account.Registration == nil {
|
||||
reg, err := register(ctx, client)
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import (
|
||||
"github.com/urfave/cli"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import (
|
||||
"crypto/x509"
|
||||
@ -53,8 +53,6 @@ func newClient(ctx *cli.Context, acc registration.User, keyType certcrypto.KeyTy
|
||||
log.Fatalf("Could not create client: %v", err)
|
||||
}
|
||||
|
||||
setupChallenges(ctx, client)
|
||||
|
||||
if client.GetExternalAccountRequired() && !ctx.GlobalIsSet("eab") {
|
||||
log.Fatal("Server requires External Account Binding. Use --eab with --kid and --hmac.")
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cmd
|
||||
package cmd // import "github.com/xenolf/lego/cmd"
|
||||
|
||||
import (
|
||||
"net"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package loader
|
||||
package loader // import "github.com/xenolf/lego/e2e/loader"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package lego
|
||||
package lego // import "github.com/xenolf/lego/lego"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package lego
|
||||
package lego // import "github.com/xenolf/lego/lego"
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package lego
|
||||
package lego // import "github.com/xenolf/lego/lego"
|
||||
|
||||
import (
|
||||
"crypto"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package log
|
||||
package log // import "github.com/xenolf/lego/log"
|
||||
|
||||
import (
|
||||
"log"
|
||||
|
2
platform/config/env/env.go
vendored
2
platform/config/env/env.go
vendored
@ -1,4 +1,4 @@
|
||||
package env
|
||||
package env // import "github.com/xenolf/lego/platform/config/env"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
2
platform/config/env/env_test.go
vendored
2
platform/config/env/env_test.go
vendored
@ -1,4 +1,4 @@
|
||||
package env
|
||||
package env // import "github.com/xenolf/lego/platform/config/env"
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package tester
|
||||
package tester // import "github.com/xenolf/lego/platform/tester"
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package tester
|
||||
package tester // import "github.com/xenolf/lego/platform/tester"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package tester_test
|
||||
package tester_test // import "github.com/xenolf/lego/platform/tester"
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package wait
|
||||
package wait // import "github.com/xenolf/lego/platform/wait"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package wait
|
||||
package wait // import "github.com/xenolf/lego/platform/wait"
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Package acmedns implements a DNS provider for solving DNS-01 challenges using Joohoi's acme-dns project.
|
||||
// For more information see the ACME-DNS homepage: https://github.com/joohoi/acme-dns
|
||||
package acmedns
|
||||
package acmedns // import "github.com/xenolf/lego/providers/dns/acmedns"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package acmedns
|
||||
package acmedns // import "github.com/xenolf/lego/providers/dns/acmedns"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Package alidns implements a DNS provider for solving the DNS-01 challenge using Alibaba Cloud DNS.
|
||||
package alidns
|
||||
package alidns // import "github.com/xenolf/lego/providers/dns/alidns"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package alidns
|
||||
package alidns // import "github.com/xenolf/lego/providers/dns/alidns"
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Package auroradns implements a DNS provider for solving the DNS-01 challenge using Aurora DNS.
|
||||
package auroradns
|
||||
package auroradns // import "github.com/xenolf/lego/providers/dns/auroradns"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package auroradns
|
||||
package auroradns // import "github.com/xenolf/lego/providers/dns/auroradns"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
@ -1,6 +1,6 @@
|
||||
// Package azure implements a DNS provider for solving the DNS-01 challenge using azure DNS.
|
||||
// Azure doesn't like trailing dots on domain names, most of the acme code does.
|
||||
package azure
|
||||
package azure // import "github.com/xenolf/lego/providers/dns/azure"
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package azure
|
||||
package azure // import "github.com/xenolf/lego/providers/dns/azure"
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Package bluecat implements a DNS provider for solving the DNS-01 challenge using a self-hosted Bluecat Address Manager.
|
||||
package bluecat
|
||||
package bluecat // import "github.com/xenolf/lego/providers/dns/bluecat"
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package bluecat
|
||||
package bluecat // import "github.com/xenolf/lego/providers/dns/bluecat"
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package bluecat
|
||||
package bluecat // import "github.com/xenolf/lego/providers/dns/bluecat"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Package cloudflare implements a DNS provider for solving the DNS-01 challenge using cloudflare DNS.
|
||||
package cloudflare
|
||||
package cloudflare // import "github.com/xenolf/lego/providers/dns/cloudflare"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cloudflare
|
||||
package cloudflare // import "github.com/xenolf/lego/providers/dns/cloudflare"
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Package cloudns implements a DNS provider for solving the DNS-01 challenge using ClouDNS DNS.
|
||||
package cloudns
|
||||
package cloudns // import "github.com/xenolf/lego/providers/dns/cloudns"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cloudns
|
||||
package cloudns // import "github.com/xenolf/lego/providers/dns/cloudns"
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package internal
|
||||
package internal // import "github.com/xenolf/lego/providers/dns/cloudns/internal"
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package internal
|
||||
package internal // import "github.com/xenolf/lego/providers/dns/cloudns/internal"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Package cloudxns implements a DNS provider for solving the DNS-01 challenge using CloudXNS DNS.
|
||||
package cloudxns
|
||||
package cloudxns // import "github.com/xenolf/lego/providers/dns/cloudxns"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cloudxns
|
||||
package cloudxns // import "github.com/xenolf/lego/providers/dns/cloudxns"
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package internal
|
||||
package internal // import "github.com/xenolf/lego/providers/dns/cloudxns/internal"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user