mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 16:32:31 +01:00
24 lines
372 B
Go
24 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()
|
|
}
|