diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2016-07-17 23:54:42 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2016-07-24 23:23:33 +0100 |
commit | 44fef1c2a163bdfd781ef08a06e3cf5cf9b7d5da (patch) | |
tree | bcde234bf45255a8935aeacf7ee544f256b455cc /cmd/dbinit | |
parent | c9849d667ab55c23d343332a11afb3eb8ede3f2d (diff) |
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
Diffstat (limited to 'cmd/dbinit')
-rw-r--r-- | cmd/dbinit/dbinit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/dbinit/dbinit.go b/cmd/dbinit/dbinit.go index 4431ced..de06cbb 100644 --- a/cmd/dbinit/dbinit.go +++ b/cmd/dbinit/dbinit.go @@ -26,8 +26,8 @@ func main() { `CREATE TABLE IF NOT EXISTS issued_certs ( key_id VARCHAR(255) NOT NULL, principals VARCHAR(255) NULL, - created_at INT(11) NULL, - expires_at INT(11) NULL, + created_at DATETIME NULL, + expires_at DATETIME NULL, revoked BOOLEAN DEFAULT NULL, raw_key TEXT NULL, PRIMARY KEY (key_id) |