mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-03 13:11:46 +08:00
20 lines
396 B
Go
20 lines
396 B
Go
package ssl
|
|
|
|
import (
|
|
. "github.com/mickael-kerjean/filestash/server/common"
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
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()
|
|
}
|