3 Commits

Author SHA1 Message Date
727de333b4 Fixed data_root hash file bug
All checks were successful
Build (artifact) / build (push) Successful in 50s
2026-03-21 10:59:47 +01:00
f4e7a37fa6 Fixed bug with hash being written in wrong location
All checks were successful
Build (artifact) / build (push) Successful in 41s
2026-03-21 10:52:46 +01:00
18f414e474 [CI-SKIP] Fixed module name
All checks were successful
Build (artifact) / build (push) Has been skipped
2026-03-16 23:03:08 +01:00
21 changed files with 39 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
VERSION := 1.1.1-beta
VERSION := 1.1.4-beta
BUILD := $(shell git rev-parse --short HEAD)
GO := go

View File

@@ -20,4 +20,8 @@ sudo certman new-domain example.com
```bash
sudo certman install -mode client
sudo certman new-domain example.com
```
```
### TODO
- Add systemd units during install
- Add update command to pull from latest release

View File

@@ -4,9 +4,9 @@ import (
"fmt"
"path/filepath"
"git.nevets.tech/Keys/certman/app/shared"
"git.nevets.tech/Keys/certman/client"
"git.nevets.tech/Keys/certman/common"
"git.nevets.tech/Steven/certman/app/shared"
"git.nevets.tech/Steven/certman/client"
"git.nevets.tech/Steven/certman/common"
"github.com/go-git/go-billy/v5/memfs"
"github.com/go-git/go-git/v5/storage/memory"
"github.com/spf13/cobra"

View File

@@ -7,9 +7,9 @@ import (
"path/filepath"
"strings"
appShared "git.nevets.tech/Keys/certman/app/shared"
"git.nevets.tech/Keys/certman/client"
"git.nevets.tech/Keys/certman/common"
appShared "git.nevets.tech/Steven/certman/app/shared"
"git.nevets.tech/Steven/certman/client"
"git.nevets.tech/Steven/certman/common"
"github.com/go-git/go-billy/v5/memfs"
"github.com/go-git/go-git/v5/storage/memory"
)

View File

@@ -6,8 +6,8 @@ import (
"log"
"time"
"git.nevets.tech/Keys/certman/app/shared"
pb "git.nevets.tech/Keys/certman/proto/v1"
"git.nevets.tech/Steven/certman/app/shared"
pb "git.nevets.tech/Steven/certman/proto/v1"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
)

View File

@@ -5,7 +5,7 @@ import (
"net"
"sync"
pb "git.nevets.tech/Keys/certman/proto/v1"
pb "git.nevets.tech/Steven/certman/proto/v1"
"github.com/coreos/go-systemd/v22/activation"
"google.golang.org/grpc"
)

View File

@@ -8,8 +8,8 @@ import (
"syscall"
"time"
"git.nevets.tech/Keys/certman/common"
pb "git.nevets.tech/Keys/certman/proto/v1"
"git.nevets.tech/Steven/certman/common"
pb "git.nevets.tech/Steven/certman/proto/v1"
)
type hookServer struct {

View File

@@ -5,9 +5,9 @@ import (
"path/filepath"
"time"
"git.nevets.tech/Keys/certman/app/shared"
"git.nevets.tech/Keys/certman/common"
"git.nevets.tech/Keys/certman/server"
"git.nevets.tech/Steven/certman/app/shared"
"git.nevets.tech/Steven/certman/common"
"git.nevets.tech/Steven/certman/server"
"github.com/go-git/go-billy/v5/memfs"
"github.com/go-git/go-git/v5/storage/memory"
"github.com/spf13/cobra"

View File

@@ -7,9 +7,9 @@ import (
"sync"
"time"
appShared "git.nevets.tech/Keys/certman/app/shared"
"git.nevets.tech/Keys/certman/common"
"git.nevets.tech/Keys/certman/server"
appShared "git.nevets.tech/Steven/certman/app/shared"
"git.nevets.tech/Steven/certman/common"
"git.nevets.tech/Steven/certman/server"
"github.com/go-git/go-billy/v5/memfs"
"github.com/go-git/go-git/v5/storage/memory"
)

View File

@@ -9,7 +9,7 @@ import (
"strconv"
"strings"
"git.nevets.tech/Keys/certman/common"
"git.nevets.tech/Steven/certman/common"
"github.com/spf13/cobra"
)

View File

@@ -9,8 +9,8 @@ import (
"strings"
"sync"
"git.nevets.tech/Keys/certman/common"
pb "git.nevets.tech/Keys/certman/proto/v1"
"git.nevets.tech/Steven/certman/common"
pb "git.nevets.tech/Steven/certman/proto/v1"
"github.com/google/uuid"
"github.com/pelletier/go-toml/v2"
"github.com/spf13/viper"

View File

@@ -10,7 +10,7 @@ import (
"syscall"
"time"
"git.nevets.tech/Keys/certman/common"
"git.nevets.tech/Steven/certman/common"
"github.com/spf13/cobra"
)

View File

@@ -5,7 +5,7 @@ import (
"os"
"path/filepath"
"git.nevets.tech/Keys/certman/common"
"git.nevets.tech/Steven/certman/common"
"github.com/spf13/cobra"
)

View File

@@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"
"git.nevets.tech/Keys/certman/common"
"git.nevets.tech/Steven/certman/common"
)
func PullCerts(config *common.AppConfig, domainConfig *common.DomainConfig, gitWorkspace *common.GitWorkspace) error {

View File

@@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"
"git.nevets.tech/Keys/certman/common"
"git.nevets.tech/Steven/certman/common"
)
func LocalCommitHash(domain string, certsDir string) (string, error) {

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"os"
"git.nevets.tech/Keys/certman/app/executor"
"git.nevets.tech/Keys/certman/app/shared"
"git.nevets.tech/Steven/certman/app/executor"
"git.nevets.tech/Steven/certman/app/shared"
"github.com/spf13/cobra"
)

View File

@@ -1,8 +1,8 @@
package main
import (
"git.nevets.tech/Keys/certman/app/client"
"git.nevets.tech/Keys/certman/app/shared"
"git.nevets.tech/Steven/certman/app/client"
"git.nevets.tech/Steven/certman/app/shared"
"github.com/spf13/cobra"
)

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"os"
"git.nevets.tech/Keys/certman/app/shared"
"git.nevets.tech/Steven/certman/app/shared"
"github.com/spf13/cobra"
)

View File

@@ -1,8 +1,8 @@
package main
import (
"git.nevets.tech/Keys/certman/app/server"
"git.nevets.tech/Keys/certman/app/shared"
"git.nevets.tech/Steven/certman/app/server"
"git.nevets.tech/Steven/certman/app/shared"
"github.com/spf13/cobra"
)

View File

@@ -297,7 +297,7 @@ func AddAndPushCerts(domain string, ws *GitWorkspace, config *AppConfig, domainC
func WriteCommitHash(hash string, config *AppConfig, domainConfig *DomainConfig) error {
var dataRoot string
if domainConfig.Certificates.DataRoot == "" {
dataRoot = config.Certificates.DataRoot
dataRoot = filepath.Join(config.Certificates.DataRoot, "certificates", domainConfig.Domain.DomainName)
} else {
dataRoot = domainConfig.Certificates.DataRoot
}

View File

@@ -16,7 +16,7 @@ import (
"sync"
"time"
"git.nevets.tech/Keys/certman/common"
"git.nevets.tech/Steven/certman/common"
"github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/certificate"
"github.com/go-acme/lego/v4/lego"