Merged Michel Salim's patch. Thanks!
[elpher.git] / elpher.el
index 87e3a52..20aa3b5 100644 (file)
--- a/elpher.el
+++ b/elpher.el
@@ -804,6 +804,8 @@ base for the installed key and certificate files."
 
 (defun elpher-list-existing-certificates ()
   "Return a list of the persistent certificates in `elpher-certificate-directory'."
+  (unless (file-directory-p elpher-certificate-directory)
+    (make-directory elpher-certificate-directory))
   (mapcar
    (lambda (file)
      (file-name-sans-extension file))