aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/acme/file.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/acme/file.go b/cmd/acme/file.go
index 4f8c479..6f54c31 100644
--- a/cmd/acme/file.go
+++ b/cmd/acme/file.go
@@ -45,6 +45,10 @@ func (d domain) Save(cert tls.Certificate) error {
return nil
}
+func (d domain) Load() (tls.Certificate, error) {
+ return tls.LoadX509KeyPair(d.CrtFile, d.KeyFile)
+}
+
func (a account) Save(key crypto.PrivateKey) error {
fd, err := NewFile(a.KeyFile, 0600)
if err != nil {