letsencrypt: Tests for load/save RSA keys and redirPlaintextHost

This commit is contained in:
Matthew Holt
2015-10-17 23:35:59 -06:00
parent da8a4fafcc
commit 8cd6b8aa99
3 changed files with 91 additions and 4 deletions

View File

@ -16,10 +16,6 @@ var storage = Storage(filepath.Join(app.DataFolder(), "letsencrypt"))
// forming file paths derived from it.
type Storage string
func (s Storage) Path(parts ...string) string {
return filepath.Join(append([]string{string(s)}, parts...)...)
}
// Sites gets the directory that stores site certificate and keys.
func (s Storage) Sites() string {
return filepath.Join(string(s), "sites")