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: services:
- memcached - memcached
go_import_path: github.com/xenolf/lego go_import_path: github.com/go-acme/lego
addons: addons:
hosts: hosts:

View file

@ -37,8 +37,8 @@ First, you have to install [GoLang](https://golang.org/doc/install) and [golangc
```bash ```bash
# Create the root folder # Create the root folder
mkdir -p $GOPATH/src/github.com/xenolf mkdir -p $GOPATH/src/github.com/go-acme
cd $GOPATH/src/github.com/xenolf cd $GOPATH/src/github.com/go-acme
# clone your fork # clone your fork
git clone git@github.com:YOUR_USERNAME/lego.git 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 \ && apk --no-cache --no-progress add make git \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
WORKDIR /go/src/github.com/xenolf/lego WORKDIR /go/src/github.com/go-acme/lego
COPY . . COPY . .
RUN make build RUN make build
FROM alpine:3.9 FROM alpine:3.9
RUN apk update && apk add --no-cache --virtual ca-certificates 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" ] ENTRYPOINT [ "/usr/bin/lego" ]

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
package api // import "github.com/xenolf/lego/acme/api" package api
import ( import (
"crypto/x509" "crypto/x509"
@ -7,9 +7,9 @@ import (
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"github.com/xenolf/lego/acme" "github.com/go-acme/lego/acme"
"github.com/xenolf/lego/certcrypto" "github.com/go-acme/lego/certcrypto"
"github.com/xenolf/lego/log" "github.com/go-acme/lego/log"
) )
// maxBodySize is the maximum size of body that we will read. // 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 ( import (
"crypto/rand" "crypto/rand"
@ -7,9 +7,9 @@ import (
"net/http" "net/http"
"testing" "testing"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/xenolf/lego/platform/tester"
) )
const certResponseMock = `-----BEGIN CERTIFICATE----- const certResponseMock = `-----BEGIN CERTIFICATE-----

View file

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

View file

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

View file

@ -1,4 +1,4 @@
package nonces // import "github.com/xenolf/lego/acme/api/internal/nonces" package nonces
import ( import (
"net/http" "net/http"
@ -6,9 +6,9 @@ import (
"testing" "testing"
"time" "time"
"github.com/xenolf/lego/acme" "github.com/go-acme/lego/acme"
"github.com/xenolf/lego/acme/api/internal/sender" "github.com/go-acme/lego/acme/api/internal/sender"
"github.com/xenolf/lego/platform/tester" "github.com/go-acme/lego/platform/tester"
) )
func TestNotHoldingLockWhileMakingHTTPRequests(t *testing.T) { 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 ( import (
"crypto" "crypto"
@ -9,7 +9,7 @@ import (
"errors" "errors"
"fmt" "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" 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 ( import (
"net/http" "net/http"
@ -6,10 +6,10 @@ import (
"testing" "testing"
"time" "time"
"github.com/xenolf/lego/acme" "github.com/go-acme/lego/acme"
"github.com/xenolf/lego/acme/api/internal/nonces" "github.com/go-acme/lego/acme/api/internal/nonces"
"github.com/xenolf/lego/acme/api/internal/sender" "github.com/go-acme/lego/acme/api/internal/sender"
"github.com/xenolf/lego/platform/tester" "github.com/go-acme/lego/platform/tester"
) )
func TestNotHoldingLockWhileMakingHTTPRequests(t *testing.T) { 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 ( import (
"encoding/json" "encoding/json"
@ -9,7 +9,7 @@ import (
"runtime" "runtime"
"strings" "strings"
"github.com/xenolf/lego/acme" "github.com/go-acme/lego/acme"
) )
type RequestOption func(*http.Request) error 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 ( import (
"net/http" "net/http"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
package certificate // import "github.com/xenolf/lego/certificate" package certificate
import ( import (
"crypto/rand" "crypto/rand"
@ -7,12 +7,12 @@ import (
"net/http" "net/http"
"testing" "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/assert"
"github.com/stretchr/testify/require" "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----- const certResponseMock = `-----BEGIN CERTIFICATE-----

View file

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

View file

@ -1,9 +1,9 @@
package challenge // import "github.com/xenolf/lego/challenge" package challenge
import ( import (
"fmt" "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. // 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" import "github.com/miekg/dns"

View file

@ -1,4 +1,4 @@
package dns01 // import "github.com/xenolf/lego/challenge/dns01" package dns01
import ( import (
"crypto/sha256" "crypto/sha256"
@ -8,12 +8,12 @@ import (
"strconv" "strconv"
"time" "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/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 ( const (

View file

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

View file

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

View file

@ -1,4 +1,4 @@
package dns01 // import "github.com/xenolf/lego/challenge/dns01" package dns01
import ( import (
"crypto/rand" "crypto/rand"
@ -8,11 +8,11 @@ import (
"testing" "testing"
"time" "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/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 { 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. // 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 // import "github.com/xenolf/lego/challenge/dns01" package dns01
import ( import (
"testing" "testing"

View file

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

View file

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

View file

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

View file

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

View file

@ -1,12 +1,12 @@
package http01 // import "github.com/xenolf/lego/challenge/http01" package http01
import ( import (
"fmt" "fmt"
"github.com/xenolf/lego/acme" "github.com/go-acme/lego/acme"
"github.com/xenolf/lego/acme/api" "github.com/go-acme/lego/acme/api"
"github.com/xenolf/lego/challenge" "github.com/go-acme/lego/challenge"
"github.com/xenolf/lego/log" "github.com/go-acme/lego/log"
) )
type ValidateFunc func(core *api.Core, domain string, chlng acme.Challenge) error 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 ( import (
"fmt" "fmt"
@ -6,7 +6,7 @@ import (
"net/http" "net/http"
"strings" "strings"
"github.com/xenolf/lego/log" "github.com/go-acme/lego/log"
) )
// ProviderServer implements ChallengeProvider for `http-01` challenge // 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 ( import (
"crypto/rand" "crypto/rand"
@ -7,12 +7,12 @@ import (
"net/http" "net/http"
"testing" "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/assert"
"github.com/stretchr/testify/require" "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) { func TestChallenge(t *testing.T) {

View file

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

View file

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

View file

@ -1,12 +1,12 @@
package resolver // import "github.com/xenolf/lego/challenge/resolver" package resolver
import ( import (
"fmt" "fmt"
"time" "time"
"github.com/xenolf/lego/acme" "github.com/go-acme/lego/acme"
"github.com/xenolf/lego/challenge" "github.com/go-acme/lego/challenge"
"github.com/xenolf/lego/log" "github.com/go-acme/lego/log"
) )
// Interface for all challenge solvers to implement. // 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 ( import (
"time" "time"
"github.com/xenolf/lego/acme" "github.com/go-acme/lego/acme"
"github.com/xenolf/lego/challenge" "github.com/go-acme/lego/challenge"
) )
type preSolverMock struct { type preSolverMock struct {

View file

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

View file

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

View file

@ -1,4 +1,4 @@
package resolver // import "github.com/xenolf/lego/challenge/resolver" package resolver
import ( import (
"crypto/rand" "crypto/rand"
@ -9,11 +9,11 @@ import (
"sort" "sort"
"testing" "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/assert"
"github.com/stretchr/testify/require" "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" 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 ( import (
"crypto/rsa" "crypto/rsa"
@ -8,11 +8,11 @@ import (
"encoding/asn1" "encoding/asn1"
"fmt" "fmt"
"github.com/xenolf/lego/acme" "github.com/go-acme/lego/acme"
"github.com/xenolf/lego/acme/api" "github.com/go-acme/lego/acme/api"
"github.com/xenolf/lego/certcrypto" "github.com/go-acme/lego/certcrypto"
"github.com/xenolf/lego/challenge" "github.com/go-acme/lego/challenge"
"github.com/xenolf/lego/log" "github.com/go-acme/lego/log"
) )
// idPeAcmeIdentifierV1 is the SMI Security for PKIX Certification Extension OID referencing the ACME extension. // 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 ( import (
"crypto/tls" "crypto/tls"
@ -7,7 +7,7 @@ import (
"net/http" "net/http"
"strings" "strings"
"github.com/xenolf/lego/log" "github.com/go-acme/lego/log"
) )
const ( const (

View file

@ -1,4 +1,4 @@
package tlsalpn01 // import "github.com/xenolf/lego/challenge/tlsalpn01" package tlsalpn01
import ( import (
"crypto/rand" "crypto/rand"
@ -10,12 +10,12 @@ import (
"net/http" "net/http"
"testing" "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/assert"
"github.com/stretchr/testify/require" "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) { func TestChallenge(t *testing.T) {

View file

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

View file

@ -1,4 +1,4 @@
package cmd // import "github.com/xenolf/lego/cmd" package cmd
import ( import (
"crypto" "crypto"
@ -13,11 +13,11 @@ import (
"path/filepath" "path/filepath"
"strings" "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/urfave/cli"
"github.com/xenolf/lego/certcrypto"
"github.com/xenolf/lego/lego"
"github.com/xenolf/lego/log"
"github.com/xenolf/lego/registration"
) )
const ( const (

View file

@ -1,4 +1,4 @@
package cmd // import "github.com/xenolf/lego/cmd" package cmd
import ( import (
"bytes" "bytes"
@ -11,10 +11,10 @@ import (
"strings" "strings"
"time" "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/urfave/cli"
"github.com/xenolf/lego/certcrypto"
"github.com/xenolf/lego/certificate"
"github.com/xenolf/lego/log"
"golang.org/x/net/idna" "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" import "github.com/urfave/cli"

View file

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

View file

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

View file

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

View file

@ -1,15 +1,15 @@
package cmd // import "github.com/xenolf/lego/cmd" package cmd
import ( import (
"crypto" "crypto"
"crypto/x509" "crypto/x509"
"time" "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/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 { func createRenew() cli.Command {

View file

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

View file

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

View file

@ -1,4 +1,4 @@
package cmd // import "github.com/xenolf/lego/cmd" package cmd
import ( import (
"bufio" "bufio"
@ -6,11 +6,11 @@ import (
"os" "os"
"strings" "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/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 { func createRun() cli.Command {

View file

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

View file

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

View file

@ -1,4 +1,4 @@
package cmd // import "github.com/xenolf/lego/cmd" package cmd
import ( import (
"crypto/x509" "crypto/x509"
@ -9,11 +9,11 @@ import (
"strings" "strings"
"time" "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/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 const filePerm os.FileMode = 0600

View file

@ -1,20 +1,20 @@
package cmd // import "github.com/xenolf/lego/cmd" package cmd
import ( import (
"net" "net"
"strings" "strings"
"time" "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/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) { func setupChallenges(ctx *cli.Context, client *lego.Client) {

View file

@ -9,7 +9,7 @@ import (
"strings" "strings"
"text/tabwriter" "text/tabwriter"
"github.com/xenolf/lego/log" "github.com/go-acme/lego/log"
) )
func allDNSCodes() string { func allDNSCodes() string {
@ -86,7 +86,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w) fmt.Fprintln(w)
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": case "alidns":
// generated from: providers/dns/alidns/alidns.toml // 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, ` - "ALICLOUD_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "auroradns":
// generated from: providers/dns/auroradns/auroradns.toml // 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, ` - "AURORA_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "azure":
// generated from: providers/dns/azure/azure.toml // 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, ` - "AZURE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "bluecat":
// generated from: providers/dns/bluecat/bluecat.toml // 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, ` - "BLUECAT_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "cloudflare":
// generated from: providers/dns/cloudflare/cloudflare.toml // 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, ` - "CLOUDFLARE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "cloudns":
// generated from: providers/dns/cloudns/cloudns.toml // 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, ` - "CLOUDNS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "cloudxns":
// generated from: providers/dns/cloudxns/cloudxns.toml // 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, ` - "CLOUDXNS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "conoha":
// generated from: providers/dns/conoha/conoha.toml // 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, ` - "CONOHA_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "designate":
// generated from: providers/dns/designate/designate.toml // 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, ` - "DESIGNATE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "digitalocean":
// generated from: providers/dns/digitalocean/digitalocean.toml // 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, ` - "DO_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "dnsimple":
// generated from: providers/dns/dnsimple/dnsimple.toml // 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, ` - "DNSIMPLE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "dnsmadeeasy":
// generated from: providers/dns/dnsmadeeasy/dnsmadeeasy.toml // 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, ` - "DNSMADEEASY_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "dnspod":
// generated from: providers/dns/dnspod/dnspod.toml // 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, ` - "DNSPOD_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "dreamhost":
// generated from: providers/dns/dreamhost/dreamhost.toml // 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, ` - "DREAMHOST_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "duckdns":
// generated from: providers/dns/duckdns/duckdns.toml // 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, ` - "DUCKDNS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "dyn":
// generated from: providers/dns/dyn/dyn.toml // 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, ` - "DYN_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "exec":
// generated from: providers/dns/exec/exec.toml // generated from: providers/dns/exec/exec.toml
@ -424,7 +424,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w) fmt.Fprintln(w)
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": case "exoscale":
// generated from: providers/dns/exoscale/exoscale.toml // 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, ` - "EXOSCALE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "fastdns":
// generated from: providers/dns/fastdns/fastdns.toml // 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, ` - "AKAMAI_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "gandi":
// generated from: providers/dns/gandi/gandi.toml // 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, ` - "GANDI_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "gandiv5":
// generated from: providers/dns/gandiv5/gandiv5.toml // 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, ` - "GANDIV5_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "gcloud":
// generated from: providers/dns/gcloud/gcloud.toml // 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, ` - "GCE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "glesys":
// generated from: providers/dns/glesys/glesys.toml // 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, ` - "GLESYS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "godaddy":
// generated from: providers/dns/godaddy/godaddy.toml // 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, ` - "GODADDY_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "hostingde":
// generated from: providers/dns/hostingde/hostingde.toml // 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, ` - "HOSTINGDE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "httpreq":
// generated from: providers/dns/httpreq/httpreq.toml // generated from: providers/dns/httpreq/httpreq.toml
@ -607,7 +607,7 @@ func displayDNSHelp(name string) {
fmt.Fprintln(w, ` - "HTTPREQ_USERNAME": **TODO**`) fmt.Fprintln(w, ` - "HTTPREQ_USERNAME": **TODO**`)
fmt.Fprintln(w) 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": case "iij":
// generated from: providers/dns/iij/iij.toml // 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, ` - "IIJ_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "inwx":
// generated from: providers/dns/inwx/inwx.toml // 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, ` - "INWX_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "lightsail":
// generated from: providers/dns/lightsail/lightsail.toml // 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, ` - "LIGHTSAIL_PROPAGATION_TIMEOUT": Maximum waiting time for DNS propagation`)
fmt.Fprintln(w) 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": case "linode":
// generated from: providers/dns/linode/linode.toml // 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, ` - "LINODE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "linodev4":
// generated from: providers/dns/linodev4/linodev4.toml // 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, ` - "LINODE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "mydnsjp":
// generated from: providers/dns/mydnsjp/mydnsjp.toml // 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, ` - "MYDNSJP_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "namecheap":
// generated from: providers/dns/namecheap/namecheap.toml // 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, ` - "NAMECHEAP_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "namedotcom":
// generated from: providers/dns/namedotcom/namedotcom.toml // 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, ` - "NAMECOM_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "netcup":
// generated from: providers/dns/netcup/netcup.toml // 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, ` - "NETCUP_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "nifcloud":
// generated from: providers/dns/nifcloud/nifcloud.toml // 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, ` - "NIFCLOUD_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "ns1":
// generated from: providers/dns/ns1/ns1.toml // 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, ` - "NS1_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "oraclecloud":
// generated from: providers/dns/oraclecloud/oraclecloud.toml // 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, ` - "OCI_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "otc":
// generated from: providers/dns/otc/otc.toml // 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, ` - "OTC_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "ovh":
// generated from: providers/dns/ovh/ovh.toml // 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, ` - "OVH_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "pdns":
// generated from: providers/dns/pdns/pdns.toml // 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, ` - "PDNS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "rackspace":
// generated from: providers/dns/rackspace/rackspace.toml // 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, ` - "RACKSPACE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "rfc2136":
// generated from: providers/dns/rfc2136/rfc2136.toml // 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, ` - "RFC2136_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "route53":
// generated from: providers/dns/route53/route53.toml // 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, ` - "AWS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "sakuracloud":
// generated from: providers/dns/sakuracloud/sakuracloud.toml // 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, ` - "SAKURACLOUD_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "selectel":
// generated from: providers/dns/selectel/selectel.toml // 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, ` - "SELECTEL_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "stackpath":
// generated from: providers/dns/stackpath/stackpath.toml // 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, ` - "STACKPATH_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "transip":
// generated from: providers/dns/transip/transip.toml // 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, ` - "TRANSIP_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "vegadns":
// generated from: providers/dns/vegadns/vegadns.toml // 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, ` - "VEGADNS_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "vscale":
// generated from: providers/dns/vscale/vscale.toml // 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, ` - "VSCALE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "vultr":
// generated from: providers/dns/vultr/vultr.toml // 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, ` - "VULTR_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "zoneee":
// generated from: providers/dns/zoneee/zoneee.toml // 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, ` - "ZONEEE_TTL": The TTL of the TXT record used for the DNS challenge`)
fmt.Fprintln(w) 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": case "manual":
fmt.Fprintln(w, `Solving the DNS-01 challenge using CLI prompt.`) 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" languageCode = "en-us"
title = "Lego" title = "Lego"
@ -55,12 +55,12 @@ pygmentsUseClasses = true
[[Languages.en.menu.shortcuts]] [[Languages.en.menu.shortcuts]]
name = "<i class='fab fa-fw fa-github'></i> Github repo" name = "<i class='fab fa-fw fa-github'></i> Github repo"
identifier = "ds" identifier = "ds"
url = "https://github.com/xenof/lego" url = "https://github.com/go-acme/lego"
weight = 10 weight = 10
[[Languages.en.menu.shortcuts]] [[Languages.en.menu.shortcuts]]
name = "<i class='fas fa-fw fa-bug'></i> Issues" 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 weight = 11
[outputs] [outputs]

View file

@ -26,5 +26,5 @@ Let's Encrypt client and ACME library written in Go.
- 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). 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/xenolf/lego/releases/tag/v0.5.0) version. 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 ## 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. lego does not assume anything about the location you run it from.
## From Docker ## From Docker
```bash ```bash
docker run xenolf/lego -h docker run goacme/lego -h
``` ```
## From package managers ## From package managers
@ -31,5 +31,5 @@ yay -S lego
To install from sources, just run: To install from sources, just run:
```bash ```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 ## CLI Examples
Assumes the `lego` binary has permission to bind to ports 80 and 443. 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). If your environment does not allow you to bind to these ports, please read [Port Usage](usage/cli#port-usage).
### Obtain a certificate ### 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. 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 ```go
type Provider interface { 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 ## 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: In our case:
```go ```go

View file

@ -10,7 +10,7 @@ Lego can be use as a Go Library.
## GoDoc ## 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 ## Usage
@ -27,12 +27,12 @@ import (
"fmt" "fmt"
"log" "log"
"github.com/xenolf/lego/certcrypto" "github.com/go-acme/lego/certcrypto"
"github.com/xenolf/lego/certificate" "github.com/go-acme/lego/certificate"
"github.com/xenolf/lego/challenge/http01" "github.com/go-acme/lego/challenge/http01"
"github.com/xenolf/lego/challenge/tlsalpn01" "github.com/go-acme/lego/challenge/tlsalpn01"
"github.com/xenolf/lego/lego" "github.com/go-acme/lego/lego"
"github.com/xenolf/lego/registration" "github.com/go-acme/lego/registration"
) )
// You'll need a user or account type that implements acme.User // You'll need a user or account type that implements acme.User

View file

@ -10,14 +10,14 @@ import (
"os" "os"
"testing" "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/assert"
"github.com/stretchr/testify/require" "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{ var load = loader.EnvLoader{

View file

@ -8,14 +8,14 @@ import (
"os" "os"
"testing" "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/assert"
"github.com/stretchr/testify/require" "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{ var load = loader.EnvLoader{

View file

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

View file

@ -9,7 +9,7 @@ import (
"strings" "strings"
"text/tabwriter" "text/tabwriter"
"github.com/xenolf/lego/log" "github.com/go-acme/lego/log"
) )
func allDNSCodes() string { func allDNSCodes() string {
@ -42,7 +42,7 @@ func displayDNSHelp(name string) {
{{- end}} {{- end}}
{{end}}{{end}} {{end}}{{end}}
fmt.Fprintln(w) 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}} {{end}}
case "manual": case "manual":
fmt.Fprintln(w, `Solving the DNS-01 challenge using CLI prompt.`) 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 ( import (
"errors" "errors"
"net/url" "net/url"
"github.com/xenolf/lego/acme/api" "github.com/go-acme/lego/acme/api"
"github.com/xenolf/lego/certificate" "github.com/go-acme/lego/certificate"
"github.com/xenolf/lego/challenge/resolver" "github.com/go-acme/lego/challenge/resolver"
"github.com/xenolf/lego/registration" "github.com/go-acme/lego/registration"
) )
// Client is the user-friendly way to ACME // 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 ( import (
"crypto/tls" "crypto/tls"
@ -10,8 +10,8 @@ import (
"os" "os"
"time" "time"
"github.com/xenolf/lego/certcrypto" "github.com/go-acme/lego/certcrypto"
"github.com/xenolf/lego/registration" "github.com/go-acme/lego/registration"
) )
const ( const (

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,11 +1,11 @@
package alidns // import "github.com/xenolf/lego/providers/dns/alidns" package alidns
import ( import (
"testing" "testing"
"time" "time"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/xenolf/lego/platform/tester"
) )
var envTest = tester.NewEnvTest( 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 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 ( import (
"errors" "errors"
@ -7,9 +7,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/go-acme/lego/challenge/dns01"
"github.com/go-acme/lego/platform/config/env"
"github.com/nrdcg/auroradns" "github.com/nrdcg/auroradns"
"github.com/xenolf/lego/challenge/dns01"
"github.com/xenolf/lego/platform/config/env"
) )
const defaultBaseURL = "https://api.auroradns.eu" 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 ( import (
"fmt" "fmt"
@ -7,9 +7,9 @@ import (
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/xenolf/lego/platform/tester"
) )
var envTest = tester.NewEnvTest( 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. // 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 // import "github.com/xenolf/lego/providers/dns/azure" package azure
import ( import (
"context" "context"
@ -17,8 +17,8 @@ import (
"github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/azure/auth" "github.com/Azure/go-autorest/autorest/azure/auth"
"github.com/Azure/go-autorest/autorest/to" "github.com/Azure/go-autorest/autorest/to"
"github.com/xenolf/lego/challenge/dns01" "github.com/go-acme/lego/challenge/dns01"
"github.com/xenolf/lego/platform/config/env" "github.com/go-acme/lego/platform/config/env"
) )
const defaultMetadataEndpoint = "http://169.254.169.254" 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 ( import (
"net/http" "net/http"
@ -6,8 +6,8 @@ import (
"testing" "testing"
"time" "time"
"github.com/go-acme/lego/platform/tester"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/xenolf/lego/platform/tester"
) )
var envTest = tester.NewEnvTest( 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 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 ( import (
"encoding/json" "encoding/json"
@ -10,8 +10,8 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/xenolf/lego/challenge/dns01" "github.com/go-acme/lego/challenge/dns01"
"github.com/xenolf/lego/platform/config/env" "github.com/go-acme/lego/platform/config/env"
) )
const ( const (

View file

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

View file

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

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