mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-09 01:42:33 +01:00
19 lines
397 B
Go
19 lines
397 B
Go
package ssl
|
|
|
|
import (
|
|
. "github.com/mickael-kerjean/filestash/server/common"
|
|
"path/filepath"
|
|
"os"
|
|
)
|
|
|
|
var keyPEMPath string = filepath.Join(GetCurrentDir(), CERT_PATH, "key.pem")
|
|
var certPEMPath string = filepath.Join(GetCurrentDir(), CERT_PATH, "cert.pem")
|
|
|
|
func init() {
|
|
os.MkdirAll(filepath.Join(GetCurrentDir(), CERT_PATH), os.ModePerm)
|
|
}
|
|
|
|
func Clear() {
|
|
clearPrivateKey()
|
|
clearCert()
|
|
}
|