diff --git a/.gitignore b/.gitignore index b229014..76803fe 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -certs +scm diff --git a/README.md b/README.md new file mode 100644 index 0000000..233fbc5 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# scm - SSL Certificate Manager + +## endpoints + +- `/api/certs` - get all certificates and details + +## build + +```shell +go build -o scm +``` + +## configuration + +### example config file - scm.conf + +``` +ENABLE_TLS=true +CERT_FILE=/home/tola/certs/localhost/localhost.crt +KEY_FILE=/home/tola/certs/localhost/localhost.key + +CERTS_PATH=/home/tola/certs + +SERVER_ADDRESS=0.0.0.0 +SERVER_PORT=8777 +``` diff --git a/api/certs.go b/api/certs.go index e3bb757..fadc52b 100644 --- a/api/certs.go +++ b/api/certs.go @@ -1,11 +1,11 @@ package api import ( - "certs/utils" "encoding/json" "fmt" "net/http" "os" + "scm/utils" "github.com/google/uuid" ) diff --git a/api/frontend/index.html b/api/frontend/index.html index ebba7cf..51e5909 100644 --- a/api/frontend/index.html +++ b/api/frontend/index.html @@ -7,7 +7,7 @@ - Certs + Scm