aboutsummaryrefslogtreecommitdiff
path: root/pkg/store/local.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/store/local.go')
-rw-r--r--pkg/store/local.go25
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