11 :key => File.read(File.join(directory, "privkey.pem")),
12 :certificate => File.read(File.join(directory, "fullchain.pem"))
15 file = Tempfile.new(["letsencrypt", ".json"])
17 file.puts JSON.generate(bag)
20 system("/usr/bin/knife", "data", "bag", "from", "file", "letsencrypt", file.path)