|
@@ -111,7 +111,7 @@ func handleListCertificate(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
|
// List all certificates and map all their domains to the cert filename
|
|
// List all certificates and map all their domains to the cert filename
|
|
func handleListDomains(w http.ResponseWriter, r *http.Request) {
|
|
func handleListDomains(w http.ResponseWriter, r *http.Request) {
|
|
- filenames, err := os.ReadDir("./certs/")
|
|
|
|
|
|
+ filenames, err := os.ReadDir("./conf/certs/")
|
|
|
|
|
|
if err != nil {
|
|
if err != nil {
|
|
utils.SendErrorResponse(w, err.Error())
|
|
utils.SendErrorResponse(w, err.Error())
|
|
@@ -123,7 +123,7 @@ func handleListDomains(w http.ResponseWriter, r *http.Request) {
|
|
if filename.IsDir() {
|
|
if filename.IsDir() {
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
- certFilepath := filepath.Join("./certs/", filename.Name())
|
|
|
|
|
|
+ certFilepath := filepath.Join("./conf/certs/", filename.Name())
|
|
|
|
|
|
certBtyes, err := os.ReadFile(certFilepath)
|
|
certBtyes, err := os.ReadFile(certFilepath)
|
|
if err != nil {
|
|
if err != nil {
|