Use canonical imports (#822)

* fix: challenge are not required for revoke.
This commit is contained in:
Ludovic Fernandez 2019-03-11 16:54:35 +01:00 committed by GitHub
parent 62fea05e21
commit 219222fdda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
197 changed files with 229 additions and 231 deletions

View file

@ -316,8 +316,8 @@
## [0.1.0] - 2015-12-03 ## [0.1.0] - 2015-12-03
- Initial release - Initial release
[0.3.1]: https://github.com/xenolf/lego/compare/v0.3.0...v0.3.1 [0.3.1]: https://github.com/go-acme/lego/compare/v0.3.0...v0.3.1
[0.3.0]: https://github.com/xenolf/lego/compare/v0.2.0...v0.3.0 [0.3.0]: https://github.com/go-acme/lego/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/xenolf/lego/compare/v0.1.1...v0.2.0 [0.2.0]: https://github.com/go-acme/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.1]: https://github.com/go-acme/lego/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/xenolf/lego/tree/v0.1.0 [0.1.0]: https://github.com/go-acme/lego/tree/v0.1.0

View file

@ -44,8 +44,8 @@ cd $GOPATH/src/github.com/xenolf
git clone git@github.com:YOUR_USERNAME/lego.git git clone git@github.com:YOUR_USERNAME/lego.git
cd lego cd lego
# Add the xenolf/lego remote # Add the go-acme/lego remote
git remote add upstream git@github.com:xenolf/lego.git git remote add upstream git@github.com:go-acme/lego.git
git fetch upstream git fetch upstream
``` ```

View file

@ -2,7 +2,7 @@
SRCS = $(shell git ls-files '*.go' | grep -v '^vendor/') SRCS = $(shell git ls-files '*.go' | grep -v '^vendor/')
LEGO_IMAGE := xenolf/lego LEGO_IMAGE := go-acme/lego
MAIN_DIRECTORY := ./cmd/lego/ MAIN_DIRECTORY := ./cmd/lego/
BIN_OUTPUT := dist/lego BIN_OUTPUT := dist/lego

View file

@ -2,11 +2,9 @@
Let's Encrypt client and ACME library written in Go. 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) [![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/xenolf/lego.svg?branch=master)](https://travis-ci.org/xenolf/lego) [![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/xenolf/lego.svg)](https://hub.docker.com/r/xenolf/lego/) [![Docker Pulls](https://img.shields.io/docker/pulls/go-acme/lego.svg)](https://hub.docker.com/r/go-acme/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)
## Features ## Features
@ -19,43 +17,43 @@ Let's Encrypt client and ACME library written in Go.
- DNS (dns-01) - DNS (dns-01)
- TLS (tls-alpn-01) - TLS (tls-alpn-01)
- SAN certificate support - SAN certificate support
- Comes with multiple optional [DNS providers](https://github.com/xenolf/lego/tree/master/providers/dns) - Comes with multiple optional [DNS providers](hhttps://go-acme.github.io/lego/dns)
- [Custom challenge solvers](https://github.com/xenolf/lego/wiki/Writing-a-Challenge-Solver) - [Custom challenge solvers](https://go-acme.github.io/lego/usage/library/writing-a-challenge-solver/)
- Certificate bundling - Certificate bundling
- OCSP helper function - 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 ## Installation
How to [install](https://xenolf.github.io/lego/installation/). How to [install](https://go-acme.github.io/lego/installation/).
## Usage ## Usage
- as a [CLI](https://xenolf.github.io/lego/usage/cli) - as a [CLI](https://go-acme.github.io/lego/usage/cli)
- as a [library](https://xenolf.github.io/lego/usage/lib) - as a [library](https://go-acme.github.io/lego/usage/lib)
## Documentation ## Documentation
Documentation is hosted live at https://xenolf.github.io/lego/. Documentation is hosted live at https://go-acme.github.io/lego/.
## DNS providers ## 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/) | | [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://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/) | | [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://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/) | | [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://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/) | | [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://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/) | | [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://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/) | | [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://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/) | | [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://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/) | | [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://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/) | | [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://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/) | | [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://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/) | | [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://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/) | | [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://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/) | | [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://xenolf.github.io/lego/dns/vultr/) | [Zone.ee](https://xenolf.github.io/lego/dns/zoneee/) | | | | [Vultr](https://go-acme.github.io/lego/dns/vultr/) | [Zone.ee](https://go-acme.github.io/lego/dns/zoneee/) | | |

View file

@ -1,4 +1,4 @@
package api package api // import "github.com/xenolf/lego/acme/api"
import ( import (
"encoding/base64" "encoding/base64"

View file

@ -1,4 +1,4 @@
package api package api // import "github.com/xenolf/lego/acme/api"
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package api package api // import "github.com/xenolf/lego/acme/api"
import ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package api package api // import "github.com/xenolf/lego/acme/api"
import ( import (
"crypto/x509" "crypto/x509"

View file

@ -1,4 +1,4 @@
package api package api // import "github.com/xenolf/lego/acme/api"
import ( import (
"crypto/rand" "crypto/rand"

View file

@ -1,4 +1,4 @@
package api package api // import "github.com/xenolf/lego/acme/api"
import ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package nonces package nonces // import "github.com/xenolf/lego/acme/api/internal/nonces"
import ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package nonces package nonces // import "github.com/xenolf/lego/acme/api/internal/nonces"
import ( import (
"net/http" "net/http"

View file

@ -1,4 +1,4 @@
package secure package secure // import "github.com/xenolf/lego/acme/api/internal/secure"
import ( import (
"crypto" "crypto"

View file

@ -1,4 +1,4 @@
package secure package secure // import "github.com/xenolf/lego/acme/api/internal/secure"
import ( import (
"net/http" "net/http"

View file

@ -1,4 +1,4 @@
package sender package sender // import "github.com/xenolf/lego/acme/api/internal/sender"
import ( import (
"encoding/json" "encoding/json"

View file

@ -1,4 +1,4 @@
package sender package sender // import "github.com/xenolf/lego/acme/api/internal/sender"
import ( import (
"net/http" "net/http"

View file

@ -1,4 +1,4 @@
package sender package sender // import "github.com/xenolf/lego/acme/api/internal/sender"
// CODE GENERATED AUTOMATICALLY // CODE GENERATED AUTOMATICALLY
// THIS FILE MUST NOT BE EDITED BY HAND // THIS FILE MUST NOT BE EDITED BY HAND

View file

@ -1,4 +1,4 @@
package api package api // import "github.com/xenolf/lego/acme/api"
import ( import (
"encoding/base64" "encoding/base64"

View file

@ -1,4 +1,4 @@
package api package api // import "github.com/xenolf/lego/acme/api"
import ( import (
"crypto/rand" "crypto/rand"

View file

@ -1,4 +1,4 @@
package api package api // import "github.com/xenolf/lego/acme/api"
import ( import (
"net/http" "net/http"

View file

@ -1,4 +1,4 @@
package api package api // import "github.com/xenolf/lego/acme/api"
import ( import (
"net/http" "net/http"

View file

@ -1,6 +1,6 @@
// Package acme contains all objects related the ACME endpoints. // Package acme contains all objects related the ACME endpoints.
// https://tools.ietf.org/html/draft-ietf-acme-acme-16 // https://tools.ietf.org/html/draft-ietf-acme-acme-16
package acme package acme // import "github.com/xenolf/lego/acme"
import ( import (
"encoding/json" "encoding/json"

View file

@ -1,4 +1,4 @@
package acme package acme // import "github.com/xenolf/lego/acme"
import ( import (
"fmt" "fmt"

View file

@ -1,4 +1,4 @@
package certcrypto package certcrypto // import "github.com/xenolf/lego/certcrypto"
import ( import (
"crypto" "crypto"

View file

@ -1,4 +1,4 @@
package certcrypto package certcrypto // import "github.com/xenolf/lego/certcrypto"
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package certificate package certificate // import "github.com/xenolf/lego/certificate"
import ( import (
"time" "time"

View file

@ -1,4 +1,4 @@
package certificate package certificate // import "github.com/xenolf/lego/certificate"
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package certificate package certificate // import "github.com/xenolf/lego/certificate"
import ( import (
"crypto/rand" "crypto/rand"

View file

@ -1,4 +1,4 @@
package certificate package certificate // import "github.com/xenolf/lego/certificate"
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package challenge package challenge // import "github.com/xenolf/lego/challenge"
import ( import (
"fmt" "fmt"

View file

@ -1,4 +1,4 @@
package dns01 package dns01 // import "github.com/xenolf/lego/challenge/dns01"
import "github.com/miekg/dns" import "github.com/miekg/dns"

View file

@ -1,4 +1,4 @@
package dns01 package dns01 // import "github.com/xenolf/lego/challenge/dns01"
import ( import (
"crypto/sha256" "crypto/sha256"

View file

@ -1,4 +1,4 @@
package dns01 package dns01 // import "github.com/xenolf/lego/challenge/dns01"
import ( import (
"bufio" "bufio"

View file

@ -1,4 +1,4 @@
package dns01 package dns01 // import "github.com/xenolf/lego/challenge/dns01"
import ( import (
"io" "io"

View file

@ -1,4 +1,4 @@
package dns01 package dns01 // import "github.com/xenolf/lego/challenge/dns01"
import ( import (
"crypto/rand" "crypto/rand"

View file

@ -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. // ToFqdn converts the name into a fqdn appending a trailing dot.
func ToFqdn(name string) string { func ToFqdn(name string) string {

View file

@ -1,4 +1,4 @@
package dns01 package dns01 // import "github.com/xenolf/lego/challenge/dns01"
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package dns01 package dns01 // import "github.com/xenolf/lego/challenge/dns01"
import ( import (
"fmt" "fmt"

View file

@ -1,4 +1,4 @@
package dns01 package dns01 // import "github.com/xenolf/lego/challenge/dns01"
import ( import (
"sort" "sort"

View file

@ -1,4 +1,4 @@
package dns01 package dns01 // import "github.com/xenolf/lego/challenge/dns01"
import ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package dns01 package dns01 // import "github.com/xenolf/lego/challenge/dns01"
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package http01 package http01 // import "github.com/xenolf/lego/challenge/http01"
import ( import (
"fmt" "fmt"

View file

@ -1,4 +1,4 @@
package http01 package http01 // import "github.com/xenolf/lego/challenge/http01"
import ( import (
"fmt" "fmt"

View file

@ -1,4 +1,4 @@
package http01 package http01 // import "github.com/xenolf/lego/challenge/http01"
import ( import (
"crypto/rand" "crypto/rand"

View file

@ -1,4 +1,4 @@
package challenge package challenge // import "github.com/xenolf/lego/challenge"
import "time" import "time"

View file

@ -1,4 +1,4 @@
package resolver package resolver // import "github.com/xenolf/lego/challenge/resolver"
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package resolver package resolver // import "github.com/xenolf/lego/challenge/resolver"
import ( import (
"fmt" "fmt"

View file

@ -1,4 +1,4 @@
package resolver package resolver // import "github.com/xenolf/lego/challenge/resolver"
import ( import (
"time" "time"

View file

@ -1,4 +1,4 @@
package resolver package resolver // import "github.com/xenolf/lego/challenge/resolver"
import ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package resolver package resolver // import "github.com/xenolf/lego/challenge/resolver"
import ( import (
"context" "context"

View file

@ -1,4 +1,4 @@
package resolver package resolver // import "github.com/xenolf/lego/challenge/resolver"
import ( import (
"crypto/rand" "crypto/rand"

View file

@ -1,4 +1,4 @@
package tlsalpn01 package tlsalpn01 // import "github.com/xenolf/lego/challenge/tlsalpn01"
import ( import (
"crypto/rsa" "crypto/rsa"

View file

@ -1,4 +1,4 @@
package tlsalpn01 package tlsalpn01 // import "github.com/xenolf/lego/challenge/tlsalpn01"
import ( import (
"crypto/tls" "crypto/tls"

View file

@ -1,4 +1,4 @@
package tlsalpn01 package tlsalpn01 // import "github.com/xenolf/lego/challenge/tlsalpn01"
import ( import (
"crypto/rand" "crypto/rand"

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import ( import (
"crypto" "crypto"

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import ( import (
"crypto" "crypto"

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import "github.com/urfave/cli" import "github.com/urfave/cli"

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import ( import (
"github.com/urfave/cli" "github.com/urfave/cli"

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import ( import (
"fmt" "fmt"
@ -37,7 +37,7 @@ func dnsHelp(ctx *cli.Context) error {
fmt.Fprintln(w, "All DNS codes:") fmt.Fprintln(w, "All DNS codes:")
fmt.Fprintf(w, "\t%s\n", allDNSCodes()) fmt.Fprintf(w, "\t%s\n", allDNSCodes())
fmt.Fprintln(w) 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() return w.Flush()
} }

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import ( import (
"encoding/json" "encoding/json"

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import ( import (
"crypto" "crypto"
@ -53,6 +53,7 @@ func createRenew() cli.Command {
func renew(ctx *cli.Context) error { func renew(ctx *cli.Context) error {
account, client := setup(ctx, NewAccountsStorage(ctx)) account, client := setup(ctx, NewAccountsStorage(ctx))
setupChallenges(ctx, client)
if account.Registration == nil { if account.Registration == nil {
log.Fatalf("Account %s is not registered. Use 'run' to register a new account.\n", account.Email) log.Fatalf("Account %s is not registered. Use 'run' to register a new account.\n", account.Email)

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import ( import (
"github.com/urfave/cli" "github.com/urfave/cli"

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import ( import (
"bufio" "bufio"
@ -47,6 +47,7 @@ func run(ctx *cli.Context) error {
accountsStorage := NewAccountsStorage(ctx) accountsStorage := NewAccountsStorage(ctx)
account, client := setup(ctx, accountsStorage) account, client := setup(ctx, accountsStorage)
setupChallenges(ctx, client)
if account.Registration == nil { if account.Registration == nil {
reg, err := register(ctx, client) reg, err := register(ctx, client)

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import ( import (
"github.com/urfave/cli" "github.com/urfave/cli"

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import ( import (
"crypto/x509" "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) log.Fatalf("Could not create client: %v", err)
} }
setupChallenges(ctx, client)
if client.GetExternalAccountRequired() && !ctx.GlobalIsSet("eab") { if client.GetExternalAccountRequired() && !ctx.GlobalIsSet("eab") {
log.Fatal("Server requires External Account Binding. Use --eab with --kid and --hmac.") log.Fatal("Server requires External Account Binding. Use --eab with --kid and --hmac.")
} }

View file

@ -1,4 +1,4 @@
package cmd package cmd // import "github.com/xenolf/lego/cmd"
import ( import (
"net" "net"

View file

@ -1,4 +1,4 @@
package loader package loader // import "github.com/xenolf/lego/e2e/loader"
import ( import (
"bytes" "bytes"

View file

@ -1,4 +1,4 @@
package lego package lego // import "github.com/xenolf/lego/lego"
import ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package lego package lego // import "github.com/xenolf/lego/lego"
import ( import (
"crypto/tls" "crypto/tls"

View file

@ -1,4 +1,4 @@
package lego package lego // import "github.com/xenolf/lego/lego"
import ( import (
"crypto" "crypto"

View file

@ -1,4 +1,4 @@
package log package log // import "github.com/xenolf/lego/log"
import ( import (
"log" "log"

View file

@ -1,4 +1,4 @@
package env package env // import "github.com/xenolf/lego/platform/config/env"
import ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package env package env // import "github.com/xenolf/lego/platform/config/env"
import ( import (
"io/ioutil" "io/ioutil"

View file

@ -1,4 +1,4 @@
package tester package tester // import "github.com/xenolf/lego/platform/tester"
import ( import (
"encoding/json" "encoding/json"

View file

@ -1,4 +1,4 @@
package tester package tester // import "github.com/xenolf/lego/platform/tester"
import ( import (
"fmt" "fmt"

View file

@ -1,4 +1,4 @@
package tester_test package tester_test // import "github.com/xenolf/lego/platform/tester"
import ( import (
"os" "os"

View file

@ -1,4 +1,4 @@
package wait package wait // import "github.com/xenolf/lego/platform/wait"
import ( import (
"fmt" "fmt"

View file

@ -1,4 +1,4 @@
package wait package wait // import "github.com/xenolf/lego/platform/wait"
import ( import (
"testing" "testing"

View file

@ -1,6 +1,6 @@
// Package acmedns implements a DNS provider for solving DNS-01 challenges using Joohoi's acme-dns project. // 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 // 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 ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package acmedns package acmedns // import "github.com/xenolf/lego/providers/dns/acmedns"
import ( import (
"errors" "errors"

View file

@ -1,5 +1,5 @@
// Package alidns implements a DNS provider for solving the DNS-01 challenge using Alibaba Cloud DNS. // 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 ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package alidns package alidns // import "github.com/xenolf/lego/providers/dns/alidns"
import ( import (
"testing" "testing"

View file

@ -1,5 +1,5 @@
// Package auroradns implements a DNS provider for solving the DNS-01 challenge using Aurora DNS. // 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 ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package auroradns package auroradns // import "github.com/xenolf/lego/providers/dns/auroradns"
import ( import (
"fmt" "fmt"

View file

@ -1,6 +1,6 @@
// Package azure implements a DNS provider for solving the DNS-01 challenge using azure DNS. // 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. // 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 ( import (
"context" "context"

View file

@ -1,4 +1,4 @@
package azure package azure // import "github.com/xenolf/lego/providers/dns/azure"
import ( import (
"net/http" "net/http"

View file

@ -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 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 ( import (
"encoding/json" "encoding/json"

View file

@ -1,4 +1,4 @@
package bluecat package bluecat // import "github.com/xenolf/lego/providers/dns/bluecat"
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package bluecat package bluecat // import "github.com/xenolf/lego/providers/dns/bluecat"
import ( import (
"bytes" "bytes"

View file

@ -1,5 +1,5 @@
// Package cloudflare implements a DNS provider for solving the DNS-01 challenge using cloudflare DNS. // 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 ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package cloudflare package cloudflare // import "github.com/xenolf/lego/providers/dns/cloudflare"
import ( import (
"testing" "testing"

View file

@ -1,5 +1,5 @@
// Package cloudns implements a DNS provider for solving the DNS-01 challenge using ClouDNS DNS. // 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 ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package cloudns package cloudns // import "github.com/xenolf/lego/providers/dns/cloudns"
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package internal package internal // import "github.com/xenolf/lego/providers/dns/cloudns/internal"
import ( import (
"encoding/json" "encoding/json"

View file

@ -1,4 +1,4 @@
package internal package internal // import "github.com/xenolf/lego/providers/dns/cloudns/internal"
import ( import (
"fmt" "fmt"

View file

@ -1,5 +1,5 @@
// Package cloudxns implements a DNS provider for solving the DNS-01 challenge using CloudXNS DNS. // 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 ( import (
"errors" "errors"

View file

@ -1,4 +1,4 @@
package cloudxns package cloudxns // import "github.com/xenolf/lego/providers/dns/cloudxns"
import ( import (
"testing" "testing"

View file

@ -1,4 +1,4 @@
package internal package internal // import "github.com/xenolf/lego/providers/dns/cloudxns/internal"
import ( import (
"bytes" "bytes"

Some files were not shown because too many files have changed in this diff Show more