<%# Opennet Firmware Copyright 2010 Rene Ejury Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -%>

<%:Status%>

<% if on_key_exists and on_crt_exists then %>
<% end %> <% if on_csr_exists or (not(on_key_exists) and not(on_crt_exists)) then %>
<% if on_csr_exists then %><%:exists%><% else %><%:missing%><% end %> <% if on_csr_exists then %><%:download%><% end %>
<% end %>
<% if on_key_exists then %><%:exists%><% else %><%:missing%><% end %> <% if on_key_exists then %><%:download%><% end %>
<% if on_crt_exists then %><%:exists%><% else %><%:missing%><% end %> <% if on_crt_exists then %><%:download%><% end %>
<% if on_csr_exists and not(on_crt_exists) then local uci = require "luci.model.uci" local cursor = uci.cursor() local contact_email = cursor:get("on-core", "defaults", "csr_contact") local on_id = cursor:get("on-core", "settings", "on_id") print(luci.i18n.translatef([[Send Certificate Request (.csr) and only this file to %s in order to get the required certificate.]], contact_email, on_id, contact_email )) end %>