First, raw renewal implementation. Pretty basic :D

This commit is contained in:
xenolf
2015-10-20 02:44:00 +02:00
parent cd0b47d068
commit c626774da2
2 changed files with 150 additions and 1 deletions

View File

@ -16,6 +16,11 @@ var storage = Storage(filepath.Join(app.DataFolder(), "letsencrypt"))
// forming file paths derived from it.
type Storage string
// RenewTimerFile returns the path to the file used for renewal timing.
func (s Storage) RenewTimerFile() string {
return filepath.Join(string(s), "lastrenew")
}
// Sites gets the directory that stores site certificate and keys.
func (s Storage) Sites() string {
return filepath.Join(string(s), "sites")