-
Notifications
You must be signed in to change notification settings - Fork 2
/
CaConfig.dhall
59 lines (54 loc) · 1.69 KB
/
CaConfig.dhall
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
let DistinguishedName = ./DistinguishedName.dhall
let KeyUsage = ./KeyUsage.dhall
let Policy = ./Policy.dhall
let Config =
{ allowedHosts : List Text
, allowedIPs : List Text
, caDir : Text
, crl : Optional Text
, crlDir : Optional Text
, crlNumber : Optional Text
, defaultCrlDays : Optional Natural
, database : Text
, defaultBits : Natural
, defaultDays : Natural
, defaultMd : Text
, defaultPolicy : Optional Text
, distinguishedName : DistinguishedName.Type
, encryptKey : Bool
, pathlen : Optional Natural
, policies : List { name : Text, policy : Policy.Type }
, prompt : Bool
, serial : Text
, stringMask : Text
, uniqueSubject : Bool
, usage : List KeyUsage
, utf8 : Bool
}
let configDefaults =
{ allowedHosts = [] : List Text
, allowedIPs = [] : List Text
, crl = None Text
, crlDir = None Text
, crlNumber = None Text
, defaultCrlDays = None Natural
, database = "\$base_dir/ca.index"
, defaultBits = 4096
, defaultDays = 365
, defaultMd = "sha256"
, defaultPolicy = Some "server_policy"
, distinguishedName = DistinguishedName.default
, encryptKey = True
, pathlen = None Natural
, policies =
[ { name = "server_policy", policy = Policy.default }
, { name = "ca_policy", policy = Policy.caPolicy }
]
, prompt = False
, serial = "\$base_dir/ca.serial"
, stringMask = "utf8only"
, uniqueSubject = False
, usage = [ KeyUsage.CrlSign, KeyUsage.KeyCertSign ]
, utf8 = True
}
in { default = configDefaults, Type = Config }