Skip to content

Commit 0ec2ad7

Browse files
committed
switch module path to github.com/kemsta/go-easyrsa/v2
1 parent 25e7e83 commit 0ec2ad7

53 files changed

Lines changed: 130 additions & 131 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build Status](https://github.com/kemsta/go-easyrsa/actions/workflows/test.yml/badge.svg)](https://github.com/kemsta/go-easyrsa/actions/workflows/test.yml)
44
[![Coverage Status](https://coveralls.io/repos/github/kemsta/go-easyrsa/badge.svg?branch=master)](https://coveralls.io/github/kemsta/go-easyrsa?branch=master)
5-
[![GoDoc](https://pkg.go.dev/badge/github.com/kemsta/go-easyrsa.svg)](https://pkg.go.dev/github.com/kemsta/go-easyrsa)
5+
[![GoDoc](https://pkg.go.dev/badge/github.com/kemsta/go-easyrsa/v2.svg)](https://pkg.go.dev/github.com/kemsta/go-easyrsa/v2)
66
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
77

88
A drop-in replacement for [easy-rsa](https://github.com/OpenVPN/easy-rsa) as a Go library - no shell scripts, no `openssl` subprocess, same PKI directory layout.
@@ -65,7 +65,7 @@ For users who still want the tiny v1-style command UX, there is also a separate
6565
### Installation
6666

6767
```bash
68-
go get github.com/kemsta/go-easyrsa@latest
68+
go get github.com/kemsta/go-easyrsa/v2@latest
6969
```
7070

7171
### Quick Start
@@ -77,7 +77,7 @@ import (
7777
"fmt"
7878
"log"
7979

80-
"github.com/kemsta/go-easyrsa/pki"
80+
"github.com/kemsta/go-easyrsa/v2/pki"
8181
)
8282

8383
func main() {
@@ -218,7 +218,7 @@ dh, err := p.GenDH(2048)
218218
### 🔌 Custom Storage
219219

220220
```go
221-
import "github.com/kemsta/go-easyrsa/storage/memory"
221+
import "github.com/kemsta/go-easyrsa/v2/storage/memory"
222222

223223
// In-memory backend - ideal for tests
224224
ks, csr, idx, sp, crl := memory.New()

cmd/go-easyrsa-legacy-cli/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
module github.com/kemsta/go-easyrsa/cmd/go-easyrsa-legacy-cli
1+
module github.com/kemsta/go-easyrsa/v2/cmd/go-easyrsa-legacy-cli
22

33
go 1.25.0
44

55
require (
6-
github.com/kemsta/go-easyrsa v1.0.2
6+
github.com/kemsta/go-easyrsa/v2 v2.1.0
77
github.com/spf13/cobra v1.10.2
88
github.com/stretchr/testify v1.11.1
99
)
@@ -20,4 +20,4 @@ require (
2020
software.sslmate.com/src/go-pkcs12 v0.7.0 // indirect
2121
)
2222

23-
replace github.com/kemsta/go-easyrsa => ../..
23+
replace github.com/kemsta/go-easyrsa/v2 => ../..

cmd/go-easyrsa-legacy-cli/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111

1212
"github.com/spf13/cobra"
1313

14-
"github.com/kemsta/go-easyrsa/cert"
15-
"github.com/kemsta/go-easyrsa/pki"
14+
"github.com/kemsta/go-easyrsa/v2/cert"
15+
"github.com/kemsta/go-easyrsa/v2/pki"
1616
)
1717

1818
const legacyValidityDays = 99 * 365

cmd/go-easyrsa-legacy-cli/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"github.com/stretchr/testify/require"
88

9-
"github.com/kemsta/go-easyrsa/cert"
9+
"github.com/kemsta/go-easyrsa/v2/cert"
1010
)
1111

1212
func TestCLI_BuildCA(t *testing.T) {

cmd/go-easyrsa-legacy-cli/testutil_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/stretchr/testify/require"
1111

12-
"github.com/kemsta/go-easyrsa/pki"
12+
"github.com/kemsta/go-easyrsa/v2/pki"
1313
)
1414

1515
func runCLI(t *testing.T, args ...string) (string, error) {

cmd/go-easyrsa-migrate/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
module github.com/kemsta/go-easyrsa/cmd/go-easyrsa-migrate
1+
module github.com/kemsta/go-easyrsa/v2/cmd/go-easyrsa-migrate
22

33
go 1.25.0
44

55
require (
6-
github.com/kemsta/go-easyrsa v1.0.2
6+
github.com/kemsta/go-easyrsa/v2 v2.1.0
77
github.com/spf13/cobra v1.10.2
88
)
99

@@ -15,4 +15,4 @@ require (
1515
software.sslmate.com/src/go-pkcs12 v0.7.0 // indirect
1616
)
1717

18-
replace github.com/kemsta/go-easyrsa => ../..
18+
replace github.com/kemsta/go-easyrsa/v2 => ../..

cmd/go-easyrsa-migrate/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/spf13/cobra"
99

10-
"github.com/kemsta/go-easyrsa/pki"
10+
"github.com/kemsta/go-easyrsa/v2/pki"
1111
)
1212

1313
func main() {

cmd/go-easyrsa-migrate/main_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"path/filepath"
66
"testing"
77

8-
"github.com/kemsta/go-easyrsa/internal/testutil"
9-
"github.com/kemsta/go-easyrsa/pki"
10-
fsstore "github.com/kemsta/go-easyrsa/storage/fs"
8+
"github.com/kemsta/go-easyrsa/v2/internal/testutil"
9+
"github.com/kemsta/go-easyrsa/v2/pki"
10+
fsstore "github.com/kemsta/go-easyrsa/v2/storage/fs"
1111
)
1212

1313
func TestCLI_MigratesLegacyToFS(t *testing.T) {

crypto/dh_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/stretchr/testify/assert"
1010
"github.com/stretchr/testify/require"
1111

12-
pkicrypto "github.com/kemsta/go-easyrsa/crypto"
12+
pkicrypto "github.com/kemsta/go-easyrsa/v2/crypto"
1313
)
1414

1515
func TestGenDHParams_Basic(t *testing.T) {

crypto/key_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/require"
1212

13-
pkicrypto "github.com/kemsta/go-easyrsa/crypto"
13+
pkicrypto "github.com/kemsta/go-easyrsa/v2/crypto"
1414
)
1515

1616
func TestGenKey_RSA(t *testing.T) {

0 commit comments

Comments
 (0)