You filled data in next to a textbox but didn't check the radio button next to it.
<%
- else
- val req = $"req";
- val msg = $"msg";
-
- %>Are you sure you want to ask for permissions on an SSL certificate to be created from an OpenSSL request at <% req %>?
- Yes, I want to request that.<%
- end
- end
-
+ val cert = $"cert";
+ val domain = $"domain";
+ val msg = $"msg";
+
+ if cert = "" then
+ %>
Please fill in a path to a certificate.
<%
+ elseif not (ChooseDomain.yourDomain {user = Init.getUserName (), domain = domain}) then
+ %>
You don't have permissions on domain <% Web.html domain %>.
<%
+ else
+ %>Are you sure you want to ask for permissions on an SSL certificate
+
at <% Web.html cert %>,
+
for domain <% domain %>?
+ Yes, I want to request that.<%
+ end
elseif $"cmd" = "request" then
- val id = Cert.add (Init.getUserId (), $"req", $"msg");
- if not (Cert.notifyNew id) then
- %>
Error sending e-mail notification
<%
- end
- %>
Request added
<%
-
+ val cert = $"cert";
+ val domain = $"domain";
+ val msg = $"msg";
+
+ if cert = "" then
+ %>
Please fill in a path to a certificate.
<%
+ elseif not (ChooseDomain.yourDomain {user = Init.getUserName (), domain = domain}) then
+ %>
You don't have permissions on domain <% Web.html domain %>.
<%
+ else
+ val text = "/afs/hcoop.net/common/etc/scripts/ca-install "
+ ^ Init.getUserName () ^ " "
+ ^ domain ^ " "
+ ^ cert
+
+ val id = Cert.add (Init.getUserId (), text, msg);
+ if not (Cert.notifyNew id) then
+ %>
<% if admin then %>
- [Modify]
- [Delete]
- To install, run: tell adamc what text to put here.
+ [Modify]
+ [Delete]
<% end %>
<% end
@@ -61,15 +66,15 @@ elseif $"cmd" = "list" then