This repository has been archived by the owner on Oct 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
acmephp.mysql.sql
69 lines (59 loc) · 2.3 KB
/
acmephp.mysql.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
-- ------------------------------------------------------
-- Server version 5.5.46-0+deb7u1-log
SET NAMES utf8;
SET TIME_ZONE='+00:00';
SET character_set_client = utf8;
-- ------------------------------------------------------
DROP TABLE IF EXISTS `acme_ownership`;
CREATE TABLE `acme_ownership` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created` int(10) unsigned NOT NULL,
`modified` int(10) unsigned NOT NULL,
`type` varchar(128) NOT NULL,
`value` varchar(255) NOT NULL,
`url` varchar(255) NOT NULL,
`challenges` text NOT NULL,
PRIMARY KEY (`id`),
KEY `value` (`value`(191))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Registered authz objects on ACME server';
-- ------------------------------------------------------
DROP TABLE IF EXISTS `acme_cert`;
CREATE TABLE `acme_cert` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created` int(10) unsigned NOT NULL,
`modified` int(10) unsigned NOT NULL,
`fqdn` varchar(255) NOT NULL,
`altnames` text NOT NULL,
`privatekey` text NOT NULL,
`certificate` text NOT NULL,
`chain` text NOT NULL,
`validfrom` int(10) unsigned NOT NULL,
`validuntil` int(10) unsigned NOT NULL,
`status` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Registered certificates on ACME server';
-- ------------------------------------------------------
DROP TABLE IF EXISTS `acme_account`;
CREATE TABLE `acme_account` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created` int(10) unsigned NOT NULL,
`modified` int(10) unsigned NOT NULL,
`mailto` varchar(255) NULL,
`tel` varchar(20) NULL,
`privatekey` text NOT NULL,
`publickey` text NOT NULL,
`contract` text NOT NULL DEFAULT '',
`url` text NOT NULL DEFAULT '',
`status` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Registered accounts on ACME server';
-- ------------------------------------------------------
DROP TABLE IF EXISTS `acme_status`;
CREATE TABLE `acme_status` (
`nonce` varchar(128) NOT NULL,
`noncets` int(10) unsigned NOT NULL,
`apiurls` text NOT NULL,
`modified` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='API endpoints and latest nonce';
INSERT INTO `acme_status` VALUES ('',230792700,'','1977-04-25 07:05:00');