Files
2024-03-13 00:18:24 +11:00

25 lines
372 B
Go

package ssl
import (
. "github.com/mickael-kerjean/filestash/server/common"
)
var (
keyPEMPath func() string
certPEMPath func() string
)
func init() {
keyPEMPath = func() string {
return GetAbsolutePath(CERT_PATH, "key.pem")
}
certPEMPath = func() string {
return GetAbsolutePath(CERT_PATH, "cert.pem")
}
}
func Clear() {
clearPrivateKey()
clearCert()
}