diff options
| author | Shulhan <ms@kilabit.info> | 2023-11-10 12:26:01 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-11-10 12:53:36 +0700 |
| commit | 378facb96e877ed275a59d974ee9b69e06120a53 (patch) | |
| tree | fe930c06d3d306c872c15bf36d74a24dbb35a993 /pkg/store/local.go | |
| parent | d7ae2721b8268b1e2880656504f41d4ae94c902b (diff) | |
| download | easypki-378facb96e877ed275a59d974ee9b69e06120a53.tar.xz | |
all: fork of unmaintained "github.com/google/easypki"
Changes,
* Add Go module
* replace "github.com/codegangsta/cli" with "github.com/urfave/cli"
* Changes import path to this repository using the following command,
$ find . -type f -name "*.go" \
| xargs sed -i "s#github.com/google/easypki#git.sr.ht/~shulhan/easypki#g"
* Reformat all files using goimports
* Remove reference to Travis and CodeCov
Diffstat (limited to 'pkg/store/local.go')
| -rw-r--r-- | pkg/store/local.go | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/pkg/store/local.go b/pkg/store/local.go index 1895e83..58a2f5b 100644 --- a/pkg/store/local.go +++ b/pkg/store/local.go @@ -16,6 +16,7 @@ package store import ( "bufio" + "crypto/x509" "crypto/x509/pkix" "encoding/pem" "fmt" @@ -27,9 +28,7 @@ import ( "strings" "time" - "crypto/x509" - - "github.com/google/easypki/pkg/certificate" + "git.sr.ht/~shulhan/easypki/pkg/certificate" ) // Predifined directory names. @@ -317,16 +316,16 @@ func (l *Local) Revoked(caName string) ([]pkix.RevokedCertificate, error) { // InitCADir creates the basic structure of a CA subdirectory. // -// |- crlnumber -// |- index.txt -// |- index.txt.attr -// |- serial -// |- certs/ -// |- ca.crt -// |- name.crt -// |- keys/ -// |- ca.key -// |- name.key +// |- crlnumber +// |- index.txt +// |- index.txt.attr +// |- serial +// |- certs/ +// |- ca.crt +// |- name.crt +// |- keys/ +// |- ca.key +// |- name.key func InitCADir(path string) error { if _, err := os.Stat(path); err == nil { return nil |
