CAA_BUILDER
CAA_BUILDER adds a Certification Authority Authorization record to a domain.
CAA_BUILDER eases the creation of CAA records. Instead of creating each CAA record individually, you can simply configure your report mail address, the authorized certificate authorities and the builder cares about the rest.
Example
Simple example
D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
CAA_BUILDER({
label: "@",
iodef: "mailto:test@example.com",
iodef_critical: true,
issue: [
"letsencrypt.org",
"comodoca.com",
],
issuewild: "none",
}),
);CAA_BUILDER builds multiple records:
D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER),
CAA("@", "iodef", "mailto:test@example.com", CAA_CRITICAL),
CAA("@", "issue", "letsencrypt.org"),
CAA("@", "issue", "comodoca.com"),
CAA("@", "issuewild", ";"),
);which in turns yield the following records:
Example with CAA_CRITICAL flag on all records
The same example can be enriched with CAA_CRITICAL on all records:
CAA_BUILDER then builds (the same) multiple records - all with CAA_CRITICAL flag set:
which in turns yield the following records:
Parameters
label:The label of the CAA record. (Optional. Default:"@")iodef:Report all violation to configured mail address. (Optional. Default:"")iodef_critical:This can betrueorfalse. If enabled and CA does not support this record, then certificate issue will be refused. (Optional. Default:false)issue:An array of CAs which are allowed to issue certificates. (Optional. Default:[]. Use"none"to refuse all CAs)issue_critical:This can betrueorfalse. If enabled and CA does not support this record, then certificate issue will be refused. (Optional. Default:false)issuewild:An array of CAs which are allowed to issue wildcard certificates. (Optional. Default:[]. Can be simply"none"to refuse issuing wildcard certificates for all CAs)issuewild_critical:This can betrueorfalse. If enabled and CA does not support this record, then certificate issue will be refused. (Optional. Default:false)issuevmc:An array of CAs which are allowed to issue VMC certificates. (Optional. Default:[]. Use"none"to refuse all CAs)issuevmc_critical:This can betrueorfalse. If enabled and CA does not support this record, then certificate issue will be refused. (Optional. Default:false)issuemail:An array of CAs which are allowed to issue email certificates. (Optional. Default:[]. Use"none"to refuse all CAs)issuemail_critical:This can betrueorfalse. If enabled and CA does not support this record, then certificate issue will be refused. (Optional. Default:false)ttl:Input forTTLmethod (optional)
Last updated