mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-07 08:53:57 +01:00
18 lines
334 B
Go
18 lines
334 B
Go
package ssl
|
|
|
|
import (
|
|
. "github.com/mickael-kerjean/filestash/server/common"
|
|
"os"
|
|
)
|
|
|
|
var keyPEMPath string = GetAbsolutePath(CERT_PATH, "key.pem")
|
|
var certPEMPath string = GetAbsolutePath(CERT_PATH, "cert.pem")
|
|
|
|
func init() {
|
|
os.MkdirAll(GetAbsolutePath(CERT_PATH), os.ModePerm)
|
|
}
|
|
|
|
func Clear() {
|
|
clearPrivateKey()
|
|
clearCert()
|
|
}
|