Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions lib/resty/auto-ssl/storage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ function _M.set_cert(self, domain, fullchain_pem, privkey_pem, cert_pem, expiry)
return nil, err
end

-- Store the cert with the current timestamp, so the old certs are preserved
-- in case something goes wrong.
local time = ngx.now() * 1000
self.adapter:set(domain .. ":" .. time, string)

-- Store the cert under the "latest" alias, which is what this app will use.
return self.adapter:set(domain .. ":latest", string)
end
Expand Down