Skip to content

Commit

Permalink
Module relocated to github.com/tdrn-org/go-certstore
Browse files Browse the repository at this point in the history
  • Loading branch information
hdecarne committed Oct 27, 2024
1 parent 38eeb30 commit 7c5c4c7
Show file tree
Hide file tree
Showing 30 changed files with 52 additions and 52 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"sonarlint.connectedMode.project": {
"connectionId": "hdecarne-github",
"projectKey": "hdecarne-github_go-certstore"
"connectionId": "tdrn-org",
"projectKey": "tdrn-org_go-certstore"
},
"makefile.configureOnOpen": false
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Go library for creation and maintenance of X.509 certificate stores
[![GoDoc](https://godoc.org/github.com/hdecarne-github/go-certstore?status.svg)](https://godoc.org/github.com/hdecarne-github/go-certstore)
[![Build](https://github.com/hdecarne-github/go-certstore/actions/workflows/build.yml/badge.svg)](https://github.com/hdecarne-github/go-certstore/actions/workflows/build.yml)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=hdecarne-github_go-certstore&metric=coverage)](https://sonarcloud.io/summary/new_code?id=hdecarne-github_go-certstore)
[![Go Report Card](https://goreportcard.com/badge/github.com/hdecarne-github/go-certstore)](https://goreportcard.com/report/github.com/hdecarne-github/go-certstore)
[![GoDoc](https://godoc.org/github.com/tdrn-org/go-certstore?status.svg)](https://godoc.org/github.com/tdrn-org/go-certstore)
[![Build](https://github.com/tdrn-org/go-certstore/actions/workflows/build.yml/badge.svg)](https://github.com/tdrn-org/go-certstore/actions/workflows/build.yml)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=tdrn-org_go-certstore&metric=coverage)](https://sonarcloud.io/summary/new_code?id=tdrn-org_go-certstore)
[![Go Report Card](https://goreportcard.com/badge/github.com/tdrn-org/go-certstore)](https://goreportcard.com/report/github.com/tdrn-org/go-certstore)

## License
This project is subject to the the MIT License. See LICENSE information for details.
6 changes: 3 additions & 3 deletions certs/acme.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"github.com/go-acme/lego/v4/certificate"
"github.com/go-acme/lego/v4/challenge/http01"
"github.com/go-acme/lego/v4/challenge/tlsalpn01"
"github.com/hdecarne-github/go-certstore/certs/acme"
"github.com/hdecarne-github/go-certstore/keys"
"github.com/hdecarne-github/go-log"
"github.com/rs/zerolog"
"github.com/tdrn-org/go-certstore/certs/acme"
"github.com/tdrn-org/go-certstore/keys"
"github.com/tdrn-org/go-log"
)

const acmeFactoryNamePattern = "ACME[%s]"
Expand Down
2 changes: 1 addition & 1 deletion certs/acme/acme.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (

"github.com/go-acme/lego/v4/certificate"
legolog "github.com/go-acme/lego/v4/log"
"github.com/hdecarne-github/go-log"
"github.com/rs/zerolog"
"github.com/tdrn-org/go-log"
)

// DecodeCertificates decodes the certificate information (private key and certificate) as returned by the [LEGO client].
Expand Down
2 changes: 1 addition & 1 deletion certs/acme/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/lego"
"github.com/hdecarne-github/go-certstore/keys"
"github.com/tdrn-org/go-certstore/keys"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion certs/acme/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ package acme_test
import (
"testing"

"github.com/hdecarne-github/go-certstore/certs/acme"
"github.com/stretchr/testify/require"
"github.com/tdrn-org/go-certstore/certs/acme"
)

func TestLoadConfig(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion certs/acme/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

"github.com/go-acme/lego/v4/lego"
"github.com/go-acme/lego/v4/registration"
"github.com/hdecarne-github/go-certstore/keys"
"github.com/tdrn-org/go-certstore/keys"
)

// A ProviderRegistration contains an ACME provider's registration information. This includes at least the necessary
Expand Down
6 changes: 3 additions & 3 deletions certs/acme_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"strings"
"testing"

"github.com/hdecarne-github/go-certstore/certs"
"github.com/hdecarne-github/go-certstore/certs/acme"
"github.com/hdecarne-github/go-certstore/keys"
"github.com/stretchr/testify/require"
"github.com/tdrn-org/go-certstore/certs"
"github.com/tdrn-org/go-certstore/certs/acme"
"github.com/tdrn-org/go-certstore/keys"
)

func TestACMECertificateFactory(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions certs/certs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"testing"
"time"

"github.com/hdecarne-github/go-certstore/certs"
"github.com/hdecarne-github/go-certstore/keys"
"github.com/stretchr/testify/require"
"github.com/tdrn-org/go-certstore/certs"
"github.com/tdrn-org/go-certstore/keys"
)

const testKeyAlg = keys.ECDSA256
Expand Down
2 changes: 1 addition & 1 deletion certs/extensions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"encoding/asn1"
"testing"

"github.com/hdecarne-github/go-certstore/certs"
"github.com/stretchr/testify/require"
"github.com/tdrn-org/go-certstore/certs"
)

func TestKeyUsageString(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion certs/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"net/http"
"os"

"github.com/hdecarne-github/go-certstore/keys"
"github.com/tdrn-org/go-certstore/keys"
"software.sslmate.com/src/go-pkcs12"
)

Expand Down
2 changes: 1 addition & 1 deletion certs/io_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"os"
"testing"

"github.com/hdecarne-github/go-certstore/certs"
"github.com/stretchr/testify/require"
"github.com/tdrn-org/go-certstore/certs"
)

func TestReadPEMCertificatesFile(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions certs/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"fmt"
"math/big"

"github.com/hdecarne-github/go-certstore/keys"
"github.com/hdecarne-github/go-log"
"github.com/rs/zerolog"
"github.com/tdrn-org/go-certstore/keys"
"github.com/tdrn-org/go-log"
)

const localFactoryName = "Local"
Expand Down
4 changes: 2 additions & 2 deletions certs/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"testing"
"time"

"github.com/hdecarne-github/go-certstore/certs"
"github.com/hdecarne-github/go-certstore/keys"
"github.com/stretchr/testify/require"
"github.com/tdrn-org/go-certstore/certs"
"github.com/tdrn-org/go-certstore/keys"
)

func TestLocalCertificateFactory(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions certs/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"crypto/x509"
"fmt"

"github.com/hdecarne-github/go-certstore/keys"
"github.com/hdecarne-github/go-log"
"github.com/rs/zerolog"
"github.com/tdrn-org/go-certstore/keys"
"github.com/tdrn-org/go-log"
)

const remoteFactoryName = "Remote"
Expand Down
4 changes: 2 additions & 2 deletions certs/remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"testing"
"time"

"github.com/hdecarne-github/go-certstore/certs"
"github.com/hdecarne-github/go-certstore/keys"
"github.com/stretchr/testify/require"
"github.com/tdrn-org/go-certstore/certs"
"github.com/tdrn-org/go-certstore/keys"
)

func TestRemoteCertificateFactory(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/hdecarne-github/go-certstore
module github.com/tdrn-org/go-certstore

go 1.23.2

Expand Down Expand Up @@ -31,8 +31,8 @@ require (
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/go-acme/lego/v4 v4.19.2
github.com/go-ldap/ldap/v3 v3.4.8
github.com/hdecarne-github/go-log v0.1.1
github.com/jellydator/ttlcache/v3 v3.3.0
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/tdrn-org/go-log v0.1.3
gopkg.in/yaml.v3 v3.0.1
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/z
github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8=
github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hdecarne-github/go-log v0.1.1 h1:NdulGj/dIJRzvjojhxIn6iF+z3MT3mE49+S5pKuaZEc=
github.com/hdecarne-github/go-log v0.1.1/go.mod h1:SiDkRhofipsXivABWvQya4ACsZrcpxelWyaqlDvcO1s=
github.com/jcmturner/aescts/v2 v2.0.0 h1:9YKLH6ey7H4eDBXW8khjYslgyqG2xZikXP0EQFKrle8=
github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90qZ5xfvvsoNs=
github.com/jcmturner/dnsutils/v2 v2.0.0 h1:lltnkeZGL0wILNvrNiVCR6Ro5PGU/SeBvVO/8c/iPbo=
Expand Down Expand Up @@ -68,6 +66,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/tdrn-org/go-log v0.1.3 h1:1058dlmRPr6HxJp2gLUCWceT7NFM45cD0VHS8t8TmlA=
github.com/tdrn-org/go-log v0.1.3/go.mod h1:4qafv09MQ77mnT/Tssw7dxCAxq4IMkPd/o6qIowA2uw=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
Expand Down
2 changes: 1 addition & 1 deletion keys/ecdsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"crypto/rand"
"io"

"github.com/hdecarne-github/go-log"
"github.com/rs/zerolog"
"github.com/tdrn-org/go-log"
)

type ecdsaKeyPair struct {
Expand Down
2 changes: 1 addition & 1 deletion keys/ed25519.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"crypto/rand"
"io"

"github.com/hdecarne-github/go-log"
"github.com/rs/zerolog"
"github.com/tdrn-org/go-log"
)

type ed25519KeyPair struct {
Expand Down
2 changes: 1 addition & 1 deletion keys/keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"testing"
"time"

"github.com/hdecarne-github/go-certstore/keys"
"github.com/stretchr/testify/require"
"github.com/tdrn-org/go-certstore/keys"
)

func TestPublicEquals(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion keys/rsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
algorithm "crypto/rsa"
"io"

"github.com/hdecarne-github/go-log"
"github.com/rs/zerolog"
"github.com/tdrn-org/go-log"
)

type rsaKeyPair struct {
Expand Down
4 changes: 2 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sonar.projectKey=hdecarne-github_go-certstore
sonar.organization=hdecarne-github
sonar.projectKey=tdrn-org_go-certstore
sonar.organization=tdrn-org

sonar.sources=.
sonar.exclusions=**/*_test.go,**/vendor/**,**/cmd/**
Expand Down
2 changes: 1 addition & 1 deletion storage/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"strconv"
"syscall"

"github.com/hdecarne-github/go-log"
"github.com/rs/zerolog"
"github.com/tdrn-org/go-log"
)

const fsBackendURIPattern = "fs://%s"
Expand Down
2 changes: 1 addition & 1 deletion storage/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"slices"
"sync"

"github.com/hdecarne-github/go-log"
"github.com/rs/zerolog"
"github.com/tdrn-org/go-log"
)

type entryVersion struct {
Expand Down
2 changes: 1 addition & 1 deletion storage/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"slices"
"testing"

"github.com/hdecarne-github/go-certstore/storage"
"github.com/stretchr/testify/require"
"github.com/tdrn-org/go-certstore/storage"
)

const testVersionLimit storage.VersionLimit = 2
Expand Down
8 changes: 4 additions & 4 deletions store.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import (
"strings"
"time"

"github.com/hdecarne-github/go-certstore/certs"
"github.com/hdecarne-github/go-certstore/keys"
"github.com/hdecarne-github/go-certstore/storage"
"github.com/hdecarne-github/go-log"
"github.com/tdrn-org/go-certstore/certs"
"github.com/tdrn-org/go-certstore/keys"
"github.com/tdrn-org/go-certstore/storage"
"github.com/tdrn-org/go-log"
"github.com/jellydator/ttlcache/v3"
"github.com/rs/zerolog"
)
Expand Down
8 changes: 4 additions & 4 deletions store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import (
"testing"
"time"

"github.com/hdecarne-github/go-certstore"
"github.com/hdecarne-github/go-certstore/certs"
"github.com/hdecarne-github/go-certstore/keys"
"github.com/hdecarne-github/go-certstore/storage"
"github.com/stretchr/testify/require"
"github.com/tdrn-org/go-certstore"
"github.com/tdrn-org/go-certstore/certs"
"github.com/tdrn-org/go-certstore/keys"
"github.com/tdrn-org/go-certstore/storage"
)

const testVersionLimit storage.VersionLimit = 2
Expand Down
2 changes: 1 addition & 1 deletion uri.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strconv"
"time"

"github.com/hdecarne-github/go-certstore/storage"
"github.com/tdrn-org/go-certstore/storage"
)

// NewStoreFromURI creates a certificate store based upon the submitted uri and base path.
Expand Down
2 changes: 1 addition & 1 deletion uri_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"os"
"testing"

"github.com/hdecarne-github/go-certstore"
"github.com/stretchr/testify/require"
"github.com/tdrn-org/go-certstore"
)

func TestMemoryStoreURI(t *testing.T) {
Expand Down

0 comments on commit 7c5c4c7

Please sign in to comment.