From 44fef1c2a163bdfd781ef08a06e3cf5cf9b7d5da Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Sun, 17 Jul 2016 23:54:42 +0100 Subject: Add a page for revoking certs Add a template for revocation Use DATETIME type to store created/expires times Require auth for the /admin and /revoke endpoints --- templates/certs.go | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 templates/certs.go (limited to 'templates/certs.go') diff --git a/templates/certs.go b/templates/certs.go new file mode 100644 index 0000000..2fde4fd --- /dev/null +++ b/templates/certs.go @@ -0,0 +1,71 @@ +package templates + +// Token is the page users see when authenticated. +const Certs = ` + + Certs + + + + +
+ {{ .CSRF }} + + + + + + + + + + + {{range .Certs}} + + + + + + + + + {{ end }} +
IDCreatedExpiresPrincipalsRevokedRevoke
{{.KeyID}}{{.CreatedAt}}{{.Expires}}{{.Principals}}{{.Revoked}} + {{if not .Revoked}} + + {{end}} +
+
+ + +` -- cgit v1.2.3