chore: migrate to new org. (#824)

This commit is contained in:
Ludovic Fernandez 2019-03-11 17:56:48 +01:00 committed by GitHub
parent a483b4afaa
commit 3edb75872d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
244 changed files with 673 additions and 673 deletions

View file

@ -7,7 +7,7 @@ go:
services:
- memcached
go_import_path: github.com/xenolf/lego
go_import_path: github.com/go-acme/lego
addons:
hosts:

View file

@ -37,8 +37,8 @@ First, you have to install [GoLang](https://golang.org/doc/install) and [golangc
```bash
# Create the root folder
mkdir -p $GOPATH/src/github.com/xenolf
cd $GOPATH/src/github.com/xenolf
mkdir -p $GOPATH/src/github.com/go-acme
cd $GOPATH/src/github.com/go-acme
# clone your fork
git clone git@github.com:YOUR_USERNAME/lego.git

View file

@ -4,11 +4,11 @@ RUN apk --update upgrade \
&& apk --no-cache --no-progress add make git \
&& rm -rf /var/cache/apk/*
WORKDIR /go/src/github.com/xenolf/lego
WORKDIR /go/src/github.com/go-acme/lego
COPY . .
RUN make build
FROM alpine:3.9
RUN apk update && apk add --no-cache --virtual ca-certificates
COPY --from=builder /go/src/github.com/xenolf/lego/dist/lego /usr/bin/lego
COPY --from=builder /go/src/github.com/go-acme/lego/dist/lego /usr/bin/lego
ENTRYPOINT [ "/usr/bin/lego" ]

View file

@ -1,11 +1,11 @@
package api // import "github.com/xenolf/lego/acme/api"
package api
import (
"encoding/base64"
"errors"
"fmt"
"github.com/xenolf/lego/acme"
"github.com/go-acme/lego/acme"
)
type AccountService service

View file

@ -1,4 +1,4 @@
package api // import "github.com/xenolf/lego/acme/api"
package api
import (
"bytes"
@ -11,11 +11,11 @@ import (
"time"
"github.com/cenkalti/backoff"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/acme/api/internal/nonces"
"github.com/xenolf/lego/acme/api/internal/secure"
"github.com/xenolf/lego/acme/api/internal/sender"
"github.com/xenolf/lego/log"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/acme/api/internal/nonces"
"github.com/go-acme/lego/acme/api/internal/secure"
"github.com/go-acme/lego/acme/api/internal/sender"
"github.com/go-acme/lego/log"
)
// Core ACME/LE core API.

View file

@ -1,9 +1,9 @@
package api // import "github.com/xenolf/lego/acme/api"
package api
import (
"errors"
"github.com/xenolf/lego/acme"
"github.com/go-acme/lego/acme"
)
type AuthorizationService service

View file

@ -1,4 +1,4 @@
package api // import "github.com/xenolf/lego/acme/api"
package api
import (
"crypto/x509"
@ -7,9 +7,9 @@ import (
"io/ioutil"
"net/http"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/certcrypto"
"github.com/xenolf/lego/log"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/certcrypto"
"github.com/go-acme/lego/log"
)
// maxBodySize is the maximum size of body that we will read.

View file

@ -1,4 +1,4 @@
package api // import "github.com/xenolf/lego/acme/api"
package api
import (
"crypto/rand"
@ -7,9 +7,9 @@ import (
"net/http"
"testing"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/platform/tester"
)
const certResponseMock = `-----BEGIN CERTIFICATE-----

View file

@ -1,9 +1,9 @@
package api // import "github.com/xenolf/lego/acme/api"
package api
import (
"errors"
"github.com/xenolf/lego/acme"
"github.com/go-acme/lego/acme"
)
type ChallengeService service

View file

@ -1,4 +1,4 @@
package nonces // import "github.com/xenolf/lego/acme/api/internal/nonces"
package nonces
import (
"errors"
@ -6,7 +6,7 @@ import (
"net/http"
"sync"
"github.com/xenolf/lego/acme/api/internal/sender"
"github.com/go-acme/lego/acme/api/internal/sender"
)
// Manager Manages nonces.

View file

@ -1,4 +1,4 @@
package nonces // import "github.com/xenolf/lego/acme/api/internal/nonces"
package nonces
import (
"net/http"
@ -6,9 +6,9 @@ import (
"testing"
"time"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/acme/api/internal/sender"
"github.com/xenolf/lego/platform/tester"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/acme/api/internal/sender"
"github.com/go-acme/lego/platform/tester"
)
func TestNotHoldingLockWhileMakingHTTPRequests(t *testing.T) {

View file

@ -1,4 +1,4 @@
package secure // import "github.com/xenolf/lego/acme/api/internal/secure"
package secure
import (
"crypto"
@ -9,7 +9,7 @@ import (
"errors"
"fmt"
"github.com/xenolf/lego/acme/api/internal/nonces"
"github.com/go-acme/lego/acme/api/internal/nonces"
jose "gopkg.in/square/go-jose.v2"
)

View file

@ -1,4 +1,4 @@
package secure // import "github.com/xenolf/lego/acme/api/internal/secure"
package secure
import (
"net/http"
@ -6,10 +6,10 @@ import (
"testing"
"time"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/acme/api/internal/nonces"
"github.com/xenolf/lego/acme/api/internal/sender"
"github.com/xenolf/lego/platform/tester"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/acme/api/internal/nonces"
"github.com/go-acme/lego/acme/api/internal/sender"
"github.com/go-acme/lego/platform/tester"
)
func TestNotHoldingLockWhileMakingHTTPRequests(t *testing.T) {

View file

@ -1,4 +1,4 @@
package sender // import "github.com/xenolf/lego/acme/api/internal/sender"
package sender
import (
"encoding/json"
@ -9,7 +9,7 @@ import (
"runtime"
"strings"
"github.com/xenolf/lego/acme"
"github.com/go-acme/lego/acme"
)
type RequestOption func(*http.Request) error

View file

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

View file

@ -1,10 +1,10 @@
package api // import "github.com/xenolf/lego/acme/api"
package api
import (
"encoding/base64"
"errors"
"github.com/xenolf/lego/acme"
"github.com/go-acme/lego/acme"
)
type OrderService service

View file

@ -1,4 +1,4 @@
package api // import "github.com/xenolf/lego/acme/api"
package api
import (
"crypto/rand"
@ -8,10 +8,10 @@ import (
"net/http"
"testing"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/platform/tester"
jose "gopkg.in/square/go-jose.v2"
)

View file

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

View file

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

View file

@ -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 // import "github.com/xenolf/lego/acme"
package acme
import (
"encoding/json"

View file

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

View file

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

View file

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

View file

@ -1,10 +1,10 @@
package certificate // import "github.com/xenolf/lego/certificate"
package certificate
import (
"time"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/log"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/log"
)
const (

View file

@ -1,4 +1,4 @@
package certificate // import "github.com/xenolf/lego/certificate"
package certificate
import (
"bytes"
@ -12,12 +12,12 @@ import (
"strings"
"time"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/acme/api"
"github.com/xenolf/lego/certcrypto"
"github.com/xenolf/lego/challenge"
"github.com/xenolf/lego/log"
"github.com/xenolf/lego/platform/wait"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/acme/api"
"github.com/go-acme/lego/certcrypto"
"github.com/go-acme/lego/challenge"
"github.com/go-acme/lego/log"
"github.com/go-acme/lego/platform/wait"
"golang.org/x/crypto/ocsp"
"golang.org/x/net/idna"
)

View file

@ -1,4 +1,4 @@
package certificate // import "github.com/xenolf/lego/certificate"
package certificate
import (
"crypto/rand"
@ -7,12 +7,12 @@ import (
"net/http"
"testing"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/acme/api"
"github.com/go-acme/lego/certcrypto"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/acme/api"
"github.com/xenolf/lego/certcrypto"
"github.com/xenolf/lego/platform/tester"
)
const certResponseMock = `-----BEGIN CERTIFICATE-----

View file

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

View file

@ -1,9 +1,9 @@
package challenge // import "github.com/xenolf/lego/challenge"
package challenge
import (
"fmt"
"github.com/xenolf/lego/acme"
"github.com/go-acme/lego/acme"
)
// Type is a string that identifies a particular challenge type and version of ACME challenge.

View file

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

View file

@ -1,4 +1,4 @@
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
package dns01
import (
"crypto/sha256"
@ -8,12 +8,12 @@ import (
"strconv"
"time"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/acme/api"
"github.com/go-acme/lego/challenge"
"github.com/go-acme/lego/log"
"github.com/go-acme/lego/platform/wait"
"github.com/miekg/dns"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/acme/api"
"github.com/xenolf/lego/challenge"
"github.com/xenolf/lego/log"
"github.com/xenolf/lego/platform/wait"
)
const (

View file

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

View file

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

View file

@ -1,4 +1,4 @@
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
package dns01
import (
"crypto/rand"
@ -8,11 +8,11 @@ import (
"testing"
"time"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/acme/api"
"github.com/go-acme/lego/challenge"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/acme/api"
"github.com/xenolf/lego/challenge"
"github.com/xenolf/lego/platform/tester"
)
type providerMock struct {

View file

@ -1,4 +1,4 @@
package dns01 // import "github.com/xenolf/lego/challenge/dns01"
package dns01
// ToFqdn converts the name into a fqdn appending a trailing dot.
func ToFqdn(name string) string {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,12 +1,12 @@
package http01 // import "github.com/xenolf/lego/challenge/http01"
package http01
import (
"fmt"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/acme/api"
"github.com/xenolf/lego/challenge"
"github.com/xenolf/lego/log"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/acme/api"
"github.com/go-acme/lego/challenge"
"github.com/go-acme/lego/log"
)
type ValidateFunc func(core *api.Core, domain string, chlng acme.Challenge) error

View file

@ -1,4 +1,4 @@
package http01 // import "github.com/xenolf/lego/challenge/http01"
package http01
import (
"fmt"
@ -6,7 +6,7 @@ import (
"net/http"
"strings"
"github.com/xenolf/lego/log"
"github.com/go-acme/lego/log"
)
// ProviderServer implements ChallengeProvider for `http-01` challenge

View file

@ -1,4 +1,4 @@
package http01 // import "github.com/xenolf/lego/challenge/http01"
package http01
import (
"crypto/rand"
@ -7,12 +7,12 @@ import (
"net/http"
"testing"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/acme/api"
"github.com/go-acme/lego/challenge"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/acme/api"
"github.com/xenolf/lego/challenge"
"github.com/xenolf/lego/platform/tester"
)
func TestChallenge(t *testing.T) {

View file

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

View file

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

View file

@ -1,12 +1,12 @@
package resolver // import "github.com/xenolf/lego/challenge/resolver"
package resolver
import (
"fmt"
"time"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/challenge"
"github.com/xenolf/lego/log"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/challenge"
"github.com/go-acme/lego/log"
)
// Interface for all challenge solvers to implement.

View file

@ -1,10 +1,10 @@
package resolver // import "github.com/xenolf/lego/challenge/resolver"
package resolver
import (
"time"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/challenge"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/challenge"
)
type preSolverMock struct {

View file

@ -1,12 +1,12 @@
package resolver // import "github.com/xenolf/lego/challenge/resolver"
package resolver
import (
"errors"
"testing"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/challenge"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/challenge"
)
func TestProber_Solve(t *testing.T) {

View file

@ -1,4 +1,4 @@
package resolver // import "github.com/xenolf/lego/challenge/resolver"
package resolver
import (
"context"
@ -9,13 +9,13 @@ import (
"time"
"github.com/cenkalti/backoff"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/acme/api"
"github.com/xenolf/lego/challenge"
"github.com/xenolf/lego/challenge/dns01"
"github.com/xenolf/lego/challenge/http01"
"github.com/xenolf/lego/challenge/tlsalpn01"
"github.com/xenolf/lego/log"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/acme/api"
"github.com/go-acme/lego/challenge"
"github.com/go-acme/lego/challenge/dns01"
"github.com/go-acme/lego/challenge/http01"
"github.com/go-acme/lego/challenge/tlsalpn01"
"github.com/go-acme/lego/log"
)
type byType []acme.Challenge

View file

@ -1,4 +1,4 @@
package resolver // import "github.com/xenolf/lego/challenge/resolver"
package resolver
import (
"crypto/rand"
@ -9,11 +9,11 @@ import (
"sort"
"testing"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/acme/api"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/acme/api"
"github.com/xenolf/lego/platform/tester"
jose "gopkg.in/square/go-jose.v2"
)

View file

@ -1,4 +1,4 @@
package tlsalpn01 // import "github.com/xenolf/lego/challenge/tlsalpn01"
package tlsalpn01
import (
"crypto/rsa"
@ -8,11 +8,11 @@ import (
"encoding/asn1"
"fmt"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/acme/api"
"github.com/xenolf/lego/certcrypto"
"github.com/xenolf/lego/challenge"
"github.com/xenolf/lego/log"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/acme/api"
"github.com/go-acme/lego/certcrypto"
"github.com/go-acme/lego/challenge"
"github.com/go-acme/lego/log"
)
// idPeAcmeIdentifierV1 is the SMI Security for PKIX Certification Extension OID referencing the ACME extension.

View file

@ -1,4 +1,4 @@
package tlsalpn01 // import "github.com/xenolf/lego/challenge/tlsalpn01"
package tlsalpn01
import (
"crypto/tls"
@ -7,7 +7,7 @@ import (
"net/http"
"strings"
"github.com/xenolf/lego/log"
"github.com/go-acme/lego/log"
)
const (

View file

@ -1,4 +1,4 @@
package tlsalpn01 // import "github.com/xenolf/lego/challenge/tlsalpn01"
package tlsalpn01
import (
"crypto/rand"
@ -10,12 +10,12 @@ import (
"net/http"
"testing"
"github.com/go-acme/lego/acme"
"github.com/go-acme/lego/acme/api"
"github.com/go-acme/lego/challenge"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/acme"
"github.com/xenolf/lego/acme/api"
"github.com/xenolf/lego/challenge"
"github.com/xenolf/lego/platform/tester"
)
func TestChallenge(t *testing.T) {

View file

@ -1,9 +1,9 @@
package cmd // import "github.com/xenolf/lego/cmd"
package cmd
import (
"crypto"
"github.com/xenolf/lego/registration"
"github.com/go-acme/lego/registration"
)
// Account represents a users local saved credentials

View file

@ -1,4 +1,4 @@
package cmd // import "github.com/xenolf/lego/cmd"
package cmd
import (
"crypto"
@ -13,11 +13,11 @@ import (
"path/filepath"
"strings"
"github.com/go-acme/lego/certcrypto"
"github.com/go-acme/lego/lego"
"github.com/go-acme/lego/log"
"github.com/go-acme/lego/registration"
"github.com/urfave/cli"
"github.com/xenolf/lego/certcrypto"
"github.com/xenolf/lego/lego"
"github.com/xenolf/lego/log"
"github.com/xenolf/lego/registration"
)
const (

View file

@ -1,4 +1,4 @@
package cmd // import "github.com/xenolf/lego/cmd"
package cmd
import (
"bytes"
@ -11,10 +11,10 @@ import (
"strings"
"time"
"github.com/go-acme/lego/certcrypto"
"github.com/go-acme/lego/certificate"
"github.com/go-acme/lego/log"
"github.com/urfave/cli"
"github.com/xenolf/lego/certcrypto"
"github.com/xenolf/lego/certificate"
"github.com/xenolf/lego/log"
"golang.org/x/net/idna"
)

View file

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

View file

@ -1,8 +1,8 @@
package cmd // import "github.com/xenolf/lego/cmd"
package cmd
import (
"github.com/go-acme/lego/log"
"github.com/urfave/cli"
"github.com/xenolf/lego/log"
)
func Before(ctx *cli.Context) error {

View file

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

View file

@ -1,4 +1,4 @@
package cmd // import "github.com/xenolf/lego/cmd"
package cmd
import (
"encoding/json"
@ -8,8 +8,8 @@ import (
"path/filepath"
"strings"
"github.com/go-acme/lego/certcrypto"
"github.com/urfave/cli"
"github.com/xenolf/lego/certcrypto"
)
func createList() cli.Command {

View file

@ -1,15 +1,15 @@
package cmd // import "github.com/xenolf/lego/cmd"
package cmd
import (
"crypto"
"crypto/x509"
"time"
"github.com/go-acme/lego/certcrypto"
"github.com/go-acme/lego/certificate"
"github.com/go-acme/lego/lego"
"github.com/go-acme/lego/log"
"github.com/urfave/cli"
"github.com/xenolf/lego/certcrypto"
"github.com/xenolf/lego/certificate"
"github.com/xenolf/lego/lego"
"github.com/xenolf/lego/log"
)
func createRenew() cli.Command {

View file

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

View file

@ -1,8 +1,8 @@
package cmd // import "github.com/xenolf/lego/cmd"
package cmd
import (
"github.com/go-acme/lego/log"
"github.com/urfave/cli"
"github.com/xenolf/lego/log"
)
func createRevoke() cli.Command {

View file

@ -1,4 +1,4 @@
package cmd // import "github.com/xenolf/lego/cmd"
package cmd
import (
"bufio"
@ -6,11 +6,11 @@ import (
"os"
"strings"
"github.com/go-acme/lego/certificate"
"github.com/go-acme/lego/lego"
"github.com/go-acme/lego/log"
"github.com/go-acme/lego/registration"
"github.com/urfave/cli"
"github.com/xenolf/lego/certificate"
"github.com/xenolf/lego/lego"
"github.com/xenolf/lego/log"
"github.com/xenolf/lego/registration"
)
func createRun() cli.Command {

View file

@ -1,8 +1,8 @@
package cmd // import "github.com/xenolf/lego/cmd"
package cmd
import (
"github.com/go-acme/lego/lego"
"github.com/urfave/cli"
"github.com/xenolf/lego/lego"
)
func CreateFlags(defaultPath string) []cli.Flag {

View file

@ -8,9 +8,9 @@ import (
"path/filepath"
"runtime"
"github.com/go-acme/lego/cmd"
"github.com/go-acme/lego/log"
"github.com/urfave/cli"
"github.com/xenolf/lego/cmd"
"github.com/xenolf/lego/log"
)
var (

View file

@ -1,4 +1,4 @@
package cmd // import "github.com/xenolf/lego/cmd"
package cmd
import (
"crypto/x509"
@ -9,11 +9,11 @@ import (
"strings"
"time"
"github.com/go-acme/lego/certcrypto"
"github.com/go-acme/lego/lego"
"github.com/go-acme/lego/log"
"github.com/go-acme/lego/registration"
"github.com/urfave/cli"
"github.com/xenolf/lego/certcrypto"
"github.com/xenolf/lego/lego"
"github.com/xenolf/lego/log"
"github.com/xenolf/lego/registration"
)
const filePerm os.FileMode = 0600

View file

@ -1,20 +1,20 @@
package cmd // import "github.com/xenolf/lego/cmd"
package cmd
import (
"net"
"strings"
"time"
"github.com/go-acme/lego/challenge"
"github.com/go-acme/lego/challenge/dns01"
"github.com/go-acme/lego/challenge/http01"
"github.com/go-acme/lego/challenge/tlsalpn01"
"github.com/go-acme/lego/lego"
"github.com/go-acme/lego/log"
"github.com/go-acme/lego/providers/dns"
"github.com/go-acme/lego/providers/http/memcached"
"github.com/go-acme/lego/providers/http/webroot"
"github.com/urfave/cli"
"github.com/xenolf/lego/challenge"
"github.com/xenolf/lego/challenge/dns01"
"github.com/xenolf/lego/challenge/http01"
"github.com/xenolf/lego/challenge/tlsalpn01"
"github.com/xenolf/lego/lego"
"github.com/xenolf/lego/log"
"github.com/xenolf/lego/providers/dns"
"github.com/xenolf/lego/providers/http/memcached"
"github.com/xenolf/lego/providers/http/webroot"
)
func setupChallenges(ctx *cli.Context, client *lego.Client) {

View file

@ -9,7 +9,7 @@ import (
"strings"
"text/tabwriter"
"github.com/xenolf/lego/log"
"github.com/go-acme/lego/log"
)
func allDNSCodes() string {
@ -86,7 +86,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/acme-dns`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/acme-dns`)
case "alidns":
// generated from: providers/dns/alidns/alidns.toml
@ -106,7 +106,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "ALICLOUD_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/alidns`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/alidns`)
case "auroradns":
// generated from: providers/dns/auroradns/auroradns.toml
@ -126,7 +126,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "AURORA_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/auroradns`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/auroradns`)
case "azure":
// generated from: providers/dns/azure/azure.toml
@ -150,7 +150,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "AZURE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/azure`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/azure`)
case "bluecat":
// generated from: providers/dns/bluecat/bluecat.toml
@ -173,7 +173,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "BLUECAT_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/bluecat`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/bluecat`)
case "cloudflare":
// generated from: providers/dns/cloudflare/cloudflare.toml
@ -193,7 +193,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "CLOUDFLARE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/cloudflare`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/cloudflare`)
case "cloudns":
// generated from: providers/dns/cloudns/cloudns.toml
@ -213,7 +213,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "CLOUDNS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/cloudns`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/cloudns`)
case "cloudxns":
// generated from: providers/dns/cloudxns/cloudxns.toml
@ -233,7 +233,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "CLOUDXNS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/cloudxns`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/cloudxns`)
case "conoha":
// generated from: providers/dns/conoha/conoha.toml
@ -255,7 +255,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "CONOHA_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/conoha`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/conoha`)
case "designate":
// generated from: providers/dns/designate/designate.toml
@ -277,7 +277,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "DESIGNATE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/designate`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/designate`)
case "digitalocean":
// generated from: providers/dns/digitalocean/digitalocean.toml
@ -296,7 +296,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "DO_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/digitalocean`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/digitalocean`)
case "dnsimple":
// generated from: providers/dns/dnsimple/dnsimple.toml
@ -315,7 +315,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "DNSIMPLE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/dnsimple`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/dnsimple`)
case "dnsmadeeasy":
// generated from: providers/dns/dnsmadeeasy/dnsmadeeasy.toml
@ -336,7 +336,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "DNSMADEEASY_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/dnsmadeeasy`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/dnsmadeeasy`)
case "dnspod":
// generated from: providers/dns/dnspod/dnspod.toml
@ -355,7 +355,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "DNSPOD_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/dnspod`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/dnspod`)
case "dreamhost":
// generated from: providers/dns/dreamhost/dreamhost.toml
@ -374,7 +374,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "DREAMHOST_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/dreamhost`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/dreamhost`)
case "duckdns":
// generated from: providers/dns/duckdns/duckdns.toml
@ -394,7 +394,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "DUCKDNS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/duckdns`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/duckdns`)
case "dyn":
// generated from: providers/dns/dyn/dyn.toml
@ -415,7 +415,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "DYN_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/dyn`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/dyn`)
case "exec":
// generated from: providers/dns/exec/exec.toml
@ -424,7 +424,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/exec`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/exec`)
case "exoscale":
// generated from: providers/dns/exoscale/exoscale.toml
@ -445,7 +445,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "EXOSCALE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/exoscale`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/exoscale`)
case "fastdns":
// generated from: providers/dns/fastdns/fastdns.toml
@ -466,7 +466,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "AKAMAI_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/fastdns`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/fastdns`)
case "gandi":
// generated from: providers/dns/gandi/gandi.toml
@ -485,7 +485,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "GANDI_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/gandi`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/gandi`)
case "gandiv5":
// generated from: providers/dns/gandiv5/gandiv5.toml
@ -504,7 +504,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "GANDIV5_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/gandiv5`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/gandiv5`)
case "gcloud":
// generated from: providers/dns/gcloud/gcloud.toml
@ -525,7 +525,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "GCE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/gcloud`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/gcloud`)
case "glesys":
// generated from: providers/dns/glesys/glesys.toml
@ -545,7 +545,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "GLESYS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/glesys`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/glesys`)
case "godaddy":
// generated from: providers/dns/godaddy/godaddy.toml
@ -566,7 +566,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "GODADDY_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/godaddy`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/godaddy`)
case "hostingde":
// generated from: providers/dns/hostingde/hostingde.toml
@ -586,7 +586,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "HOSTINGDE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/hostingde`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/hostingde`)
case "httpreq":
// generated from: providers/dns/httpreq/httpreq.toml
@ -607,7 +607,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "HTTPREQ_USERNAME": **TODO**`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/httpreq`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/httpreq`)
case "iij":
// generated from: providers/dns/iij/iij.toml
@ -627,7 +627,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "IIJ_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/iij`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/iij`)
case "inwx":
// generated from: providers/dns/inwx/inwx.toml
@ -647,7 +647,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "INWX_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/inwx`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/inwx`)
case "lightsail":
// generated from: providers/dns/lightsail/lightsail.toml
@ -666,7 +666,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "LIGHTSAIL_PROPAGATION_TIMEOUT": Maximum waiting time for DNS propagation`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/lightsail`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/lightsail`)
case "linode":
// generated from: providers/dns/linode/linode.toml
@ -684,7 +684,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "LINODE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/linode`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/linode`)
case "linodev4":
// generated from: providers/dns/linodev4/linodev4.toml
@ -702,7 +702,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "LINODE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/linodev4`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/linodev4`)
case "mydnsjp":
// generated from: providers/dns/mydnsjp/mydnsjp.toml
@ -722,7 +722,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "MYDNSJP_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/mydnsjp`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/mydnsjp`)
case "namecheap":
// generated from: providers/dns/namecheap/namecheap.toml
@ -742,7 +742,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "NAMECHEAP_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/namecheap`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/namecheap`)
case "namedotcom":
// generated from: providers/dns/namedotcom/namedotcom.toml
@ -762,7 +762,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "NAMECOM_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/namedotcom`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/namedotcom`)
case "netcup":
// generated from: providers/dns/netcup/netcup.toml
@ -783,7 +783,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "NETCUP_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/netcup`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/netcup`)
case "nifcloud":
// generated from: providers/dns/nifcloud/nifcloud.toml
@ -803,7 +803,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "NIFCLOUD_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/nifcloud`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/nifcloud`)
case "ns1":
// generated from: providers/dns/ns1/ns1.toml
@ -822,7 +822,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "NS1_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/ns1`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/ns1`)
case "oraclecloud":
// generated from: providers/dns/oraclecloud/oraclecloud.toml
@ -846,7 +846,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "OCI_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/oraclecloud`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/oraclecloud`)
case "otc":
// generated from: providers/dns/otc/otc.toml
@ -869,7 +869,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "OTC_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/otc`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/otc`)
case "ovh":
// generated from: providers/dns/ovh/ovh.toml
@ -891,7 +891,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "OVH_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/ovh`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/ovh`)
case "pdns":
// generated from: providers/dns/pdns/pdns.toml
@ -911,7 +911,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "PDNS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/pdns`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/pdns`)
case "rackspace":
// generated from: providers/dns/rackspace/rackspace.toml
@ -931,7 +931,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "RACKSPACE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/rackspace`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/rackspace`)
case "rfc2136":
// generated from: providers/dns/rfc2136/rfc2136.toml
@ -954,7 +954,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "RFC2136_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/rfc2136`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/rfc2136`)
case "route53":
// generated from: providers/dns/route53/route53.toml
@ -975,7 +975,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "AWS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/route53`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/route53`)
case "sakuracloud":
// generated from: providers/dns/sakuracloud/sakuracloud.toml
@ -994,7 +994,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "SAKURACLOUD_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/sakuracloud`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/sakuracloud`)
case "selectel":
// generated from: providers/dns/selectel/selectel.toml
@ -1014,7 +1014,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "SELECTEL_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/selectel`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/selectel`)
case "stackpath":
// generated from: providers/dns/stackpath/stackpath.toml
@ -1034,7 +1034,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "STACKPATH_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/stackpath`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/stackpath`)
case "transip":
// generated from: providers/dns/transip/transip.toml
@ -1053,7 +1053,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "TRANSIP_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/transip`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/transip`)
case "vegadns":
// generated from: providers/dns/vegadns/vegadns.toml
@ -1073,7 +1073,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "VEGADNS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/vegadns`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/vegadns`)
case "vscale":
// generated from: providers/dns/vscale/vscale.toml
@ -1093,7 +1093,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "VSCALE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/vscale`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/vscale`)
case "vultr":
// generated from: providers/dns/vultr/vultr.toml
@ -1112,7 +1112,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "VULTR_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/vultr`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/vultr`)
case "zoneee":
// generated from: providers/dns/zoneee/zoneee.toml
@ -1133,7 +1133,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "ZONEEE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/zoneee`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/zoneee`)
case "manual":
fmt.Fprintln(w, `Solving the DNS-01 challenge using CLI prompt.`)

View file

@ -1,4 +1,4 @@
baseURL = "https://xenolf.github.io/lego/"
baseURL = "https://go-acme.github.io/lego/"
languageCode = "en-us"
title = "Lego"
@ -55,12 +55,12 @@ pygmentsUseClasses = true
[[Languages.en.menu.shortcuts]]
name = "<i class='fab fa-fw fa-github'></i> Github repo"
identifier = "ds"
url = "https://github.com/xenof/lego"
url = "https://github.com/go-acme/lego"
weight = 10
[[Languages.en.menu.shortcuts]]
name = "<i class='fas fa-fw fa-bug'></i> Issues"
url = "https://github.com/xenolf/lego/issues"
url = "https://github.com/go-acme/lego/issues"
weight = 11
[outputs]

View file

@ -26,5 +26,5 @@ Let's Encrypt client and ACME library written in Go.
- 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.

View file

@ -7,13 +7,13 @@ draft: false
## Binaries
To get the binary just download the latest release for your OS/Arch from [the release page](https://github.com/xenolf/lego/releases) and put the binary somewhere convenient.
To get the binary just download the latest release for your OS/Arch from [the release page](https://github.com/go-acme/lego/releases) and put the binary somewhere convenient.
lego does not assume anything about the location you run it from.
## From Docker
```bash
docker run xenolf/lego -h
docker run goacme/lego -h
```
## From package managers
@ -31,5 +31,5 @@ yay -S lego
To install from sources, just run:
```bash
go get -u github.com/xenolf/lego/cmd/lego
go get -u github.com/go-acme/lego/cmd/lego
```

View file

@ -7,7 +7,7 @@ draft: false
## CLI Examples
Assumes the `lego` binary has permission to bind to ports 80 and 443.
You can get a pre-built binary from the [releases](https://github.com/xenolf/lego/releases) page.
You can get a pre-built binary from the [releases](https://github.com/go-acme/lego/releases) page.
If your environment does not allow you to bind to these ports, please read [Port Usage](usage/cli#port-usage).
### Obtain a certificate

View file

@ -15,7 +15,7 @@ For example, the HTTP-01 challenge doesn't work well behind a load balancer or C
But even if using HTTP-01 or TLS-ALPN-01 challenges, you may have specific needs that lego does not consider by default.
You can write something called a `challenge.Provider` that implements [this interface](https://godoc.org/github.com/xenolf/lego/challenge#Provider):
You can write something called a `challenge.Provider` that implements [this interface](https://godoc.org/github.com/go-acme/lego/challenge#Provider):
```go
type Provider interface {
@ -85,7 +85,7 @@ In our case, we'd just make another API request to have the DNS record deleted;
## Using your new challenge.Provider
To use your new challenge provider, call [`client.Challenge.SetDNS01Provider`](https://godoc.org/github.com/xenolf/lego/challenge/resolver#SolverManager.SetDNS01Provider) to tell lego, "For this challenge, use this provider".
To use your new challenge provider, call [`client.Challenge.SetDNS01Provider`](https://godoc.org/github.com/go-acme/lego/challenge/resolver#SolverManager.SetDNS01Provider) to tell lego, "For this challenge, use this provider".
In our case:
```go

View file

@ -10,7 +10,7 @@ Lego can be use as a Go Library.
## GoDoc
The GoDoc can be found here: [GoDoc](https://godoc.org/github.com/xenolf/lego/acme)
The GoDoc can be found here: [GoDoc](https://godoc.org/github.com/go-acme/lego/acme)
## Usage
@ -27,12 +27,12 @@ import (
"fmt"
"log"
"github.com/xenolf/lego/certcrypto"
"github.com/xenolf/lego/certificate"
"github.com/xenolf/lego/challenge/http01"
"github.com/xenolf/lego/challenge/tlsalpn01"
"github.com/xenolf/lego/lego"
"github.com/xenolf/lego/registration"
"github.com/go-acme/lego/certcrypto"
"github.com/go-acme/lego/certificate"
"github.com/go-acme/lego/challenge/http01"
"github.com/go-acme/lego/challenge/tlsalpn01"
"github.com/go-acme/lego/lego"
"github.com/go-acme/lego/registration"
)
// You'll need a user or account type that implements acme.User

View file

@ -10,14 +10,14 @@ import (
"os"
"testing"
"github.com/go-acme/lego/certificate"
"github.com/go-acme/lego/challenge/http01"
"github.com/go-acme/lego/challenge/tlsalpn01"
"github.com/go-acme/lego/e2e/loader"
"github.com/go-acme/lego/lego"
"github.com/go-acme/lego/registration"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/certificate"
"github.com/xenolf/lego/challenge/http01"
"github.com/xenolf/lego/challenge/tlsalpn01"
"github.com/xenolf/lego/e2e/loader"
"github.com/xenolf/lego/lego"
"github.com/xenolf/lego/registration"
)
var load = loader.EnvLoader{

View file

@ -8,14 +8,14 @@ import (
"os"
"testing"
"github.com/go-acme/lego/certificate"
"github.com/go-acme/lego/challenge/dns01"
"github.com/go-acme/lego/e2e/loader"
"github.com/go-acme/lego/lego"
"github.com/go-acme/lego/providers/dns"
"github.com/go-acme/lego/registration"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/certificate"
"github.com/xenolf/lego/challenge/dns01"
"github.com/xenolf/lego/e2e/loader"
"github.com/xenolf/lego/lego"
"github.com/xenolf/lego/providers/dns"
"github.com/xenolf/lego/registration"
)
var load = loader.EnvLoader{

View file

@ -1,4 +1,4 @@
package loader // import "github.com/xenolf/lego/e2e/loader"
package loader
import (
"bytes"
@ -15,7 +15,7 @@ import (
"testing"
"time"
"github.com/xenolf/lego/platform/wait"
"github.com/go-acme/lego/platform/wait"
)
const (

View file

@ -9,7 +9,7 @@ import (
"strings"
"text/tabwriter"
"github.com/xenolf/lego/log"
"github.com/go-acme/lego/log"
)
func allDNSCodes() string {
@ -42,7 +42,7 @@ func displayDNSHelp(name string) {
{{- end}}
{{end}}{{end}}
fmt.Fprintln(w)
fmt.Fprintln(w, `More information: https://xenolf.github.io/lego/dns/{{ $provider.Code }}`)
fmt.Fprintln(w, `More information: https://go-acme.github.io/lego/dns/{{ $provider.Code }}`)
{{end}}
case "manual":
fmt.Fprintln(w, `Solving the DNS-01 challenge using CLI prompt.`)

View file

@ -1,13 +1,13 @@
package lego // import "github.com/xenolf/lego/lego"
package lego
import (
"errors"
"net/url"
"github.com/xenolf/lego/acme/api"
"github.com/xenolf/lego/certificate"
"github.com/xenolf/lego/challenge/resolver"
"github.com/xenolf/lego/registration"
"github.com/go-acme/lego/acme/api"
"github.com/go-acme/lego/certificate"
"github.com/go-acme/lego/challenge/resolver"
"github.com/go-acme/lego/registration"
)
// Client is the user-friendly way to ACME

View file

@ -1,4 +1,4 @@
package lego // import "github.com/xenolf/lego/lego"
package lego
import (
"crypto/tls"
@ -10,8 +10,8 @@ import (
"os"
"time"
"github.com/xenolf/lego/certcrypto"
"github.com/xenolf/lego/registration"
"github.com/go-acme/lego/certcrypto"
"github.com/go-acme/lego/registration"
)
const (

View file

@ -1,4 +1,4 @@
package lego // import "github.com/xenolf/lego/lego"
package lego
import (
"crypto"
@ -6,10 +6,10 @@ import (
"crypto/rsa"
"testing"
"github.com/go-acme/lego/platform/tester"
"github.com/go-acme/lego/registration"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/platform/tester"
"github.com/xenolf/lego/registration"
)
func TestNewClient(t *testing.T) {

View file

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

View file

@ -1,4 +1,4 @@
package env // import "github.com/xenolf/lego/platform/config/env"
package env
import (
"errors"
@ -9,7 +9,7 @@ import (
"strings"
"time"
"github.com/xenolf/lego/log"
"github.com/go-acme/lego/log"
)
// Get environment variables

View file

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

View file

@ -1,11 +1,11 @@
package tester // import "github.com/xenolf/lego/platform/tester"
package tester
import (
"encoding/json"
"net/http"
"net/http/httptest"
"github.com/xenolf/lego/acme"
"github.com/go-acme/lego/acme"
)
// SetupFakeAPI Minimal stub ACME server for validation.

View file

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

View file

@ -1,12 +1,12 @@
package tester_test // import "github.com/xenolf/lego/platform/tester"
package tester_test
import (
"os"
"strings"
"testing"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/xenolf/lego/platform/tester"
)
const (

View file

@ -1,10 +1,10 @@
package wait // import "github.com/xenolf/lego/platform/wait"
package wait
import (
"fmt"
"time"
"github.com/xenolf/lego/log"
"github.com/go-acme/lego/log"
)
// For polls the given function 'f', once every 'interval', up to 'timeout'.

View file

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

View file

@ -1,14 +1,14 @@
// 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 // import "github.com/xenolf/lego/providers/dns/acmedns"
package acmedns
import (
"errors"
"fmt"
"github.com/cpu/goacmedns"
"github.com/xenolf/lego/challenge/dns01"
"github.com/xenolf/lego/platform/config/env"
"github.com/go-acme/lego/challenge/dns01"
"github.com/go-acme/lego/platform/config/env"
)
const (

View file

@ -1,4 +1,4 @@
package acmedns // import "github.com/xenolf/lego/providers/dns/acmedns"
package acmedns
import (
"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 // import "github.com/xenolf/lego/providers/dns/alidns"
package alidns
import (
"errors"
@ -11,8 +11,8 @@ import (
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
"github.com/aliyun/alibaba-cloud-sdk-go/services/alidns"
"github.com/xenolf/lego/challenge/dns01"
"github.com/xenolf/lego/platform/config/env"
"github.com/go-acme/lego/challenge/dns01"
"github.com/go-acme/lego/platform/config/env"
)
const defaultRegionID = "cn-hangzhou"

View file

@ -1,11 +1,11 @@
package alidns // import "github.com/xenolf/lego/providers/dns/alidns"
package alidns
import (
"testing"
"time"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/platform/tester"
)
var envTest = tester.NewEnvTest(

View file

@ -1,5 +1,5 @@
// Package auroradns implements a DNS provider for solving the DNS-01 challenge using Aurora DNS.
package auroradns // import "github.com/xenolf/lego/providers/dns/auroradns"
package auroradns
import (
"errors"
@ -7,9 +7,9 @@ import (
"sync"
"time"
"github.com/go-acme/lego/challenge/dns01"
"github.com/go-acme/lego/platform/config/env"
"github.com/nrdcg/auroradns"
"github.com/xenolf/lego/challenge/dns01"
"github.com/xenolf/lego/platform/config/env"
)
const defaultBaseURL = "https://api.auroradns.eu"

View file

@ -1,4 +1,4 @@
package auroradns // import "github.com/xenolf/lego/providers/dns/auroradns"
package auroradns
import (
"fmt"
@ -7,9 +7,9 @@ import (
"net/http/httptest"
"testing"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/platform/tester"
)
var envTest = tester.NewEnvTest(

View file

@ -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 // import "github.com/xenolf/lego/providers/dns/azure"
package azure
import (
"context"
@ -17,8 +17,8 @@ import (
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/azure/auth"
"github.com/Azure/go-autorest/autorest/to"
"github.com/xenolf/lego/challenge/dns01"
"github.com/xenolf/lego/platform/config/env"
"github.com/go-acme/lego/challenge/dns01"
"github.com/go-acme/lego/platform/config/env"
)
const defaultMetadataEndpoint = "http://169.254.169.254"

View file

@ -1,4 +1,4 @@
package azure // import "github.com/xenolf/lego/providers/dns/azure"
package azure
import (
"net/http"
@ -6,8 +6,8 @@ import (
"testing"
"time"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/platform/tester"
)
var envTest = tester.NewEnvTest(

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 // import "github.com/xenolf/lego/providers/dns/bluecat"
package bluecat
import (
"encoding/json"
@ -10,8 +10,8 @@ import (
"strconv"
"time"
"github.com/xenolf/lego/challenge/dns01"
"github.com/xenolf/lego/platform/config/env"
"github.com/go-acme/lego/challenge/dns01"
"github.com/go-acme/lego/platform/config/env"
)
const (

View file

@ -1,11 +1,11 @@
package bluecat // import "github.com/xenolf/lego/providers/dns/bluecat"
package bluecat
import (
"testing"
"time"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/require"
"github.com/xenolf/lego/platform/tester"
)
var envTest = tester.NewEnvTest(

View file

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

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