├── .gitignore ├── .htaccess ├── LICENSE ├── Makefile ├── README ├── about.xml ├── generator.js ├── github_ribbon.png ├── index.xml ├── style.css ├── support.xml └── template.xslt /.gitignore: -------------------------------------------------------------------------------- 1 | *.html 2 | -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | DirectoryIndex index.html 2 | RewriteEngine On 3 | RewriteCond %{REQUEST_FILENAME}.html -f 4 | RewriteRule ^([^.]*)$ $1.html [L] 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Mozilla Public License Version 2.0 2 | ================================== 3 | 4 | 1. Definitions 5 | -------------- 6 | 7 | 1.1. "Contributor" 8 | means each individual or legal entity that creates, contributes to 9 | the creation of, or owns Covered Software. 10 | 11 | 1.2. "Contributor Version" 12 | means the combination of the Contributions of others (if any) used 13 | by a Contributor and that particular Contributor's Contribution. 14 | 15 | 1.3. "Contribution" 16 | means Covered Software of a particular Contributor. 17 | 18 | 1.4. "Covered Software" 19 | means Source Code Form to which the initial Contributor has attached 20 | the notice in Exhibit A, the Executable Form of such Source Code 21 | Form, and Modifications of such Source Code Form, in each case 22 | including portions thereof. 23 | 24 | 1.5. "Incompatible With Secondary Licenses" 25 | means 26 | 27 | (a) that the initial Contributor has attached the notice described 28 | in Exhibit B to the Covered Software; or 29 | 30 | (b) that the Covered Software was made available under the terms of 31 | version 1.1 or earlier of the License, but not also under the 32 | terms of a Secondary License. 33 | 34 | 1.6. "Executable Form" 35 | means any form of the work other than Source Code Form. 36 | 37 | 1.7. "Larger Work" 38 | means a work that combines Covered Software with other material, in 39 | a separate file or files, that is not Covered Software. 40 | 41 | 1.8. "License" 42 | means this document. 43 | 44 | 1.9. "Licensable" 45 | means having the right to grant, to the maximum extent possible, 46 | whether at the time of the initial grant or subsequently, any and 47 | all of the rights conveyed by this License. 48 | 49 | 1.10. "Modifications" 50 | means any of the following: 51 | 52 | (a) any file in Source Code Form that results from an addition to, 53 | deletion from, or modification of the contents of Covered 54 | Software; or 55 | 56 | (b) any new file in Source Code Form that contains any Covered 57 | Software. 58 | 59 | 1.11. "Patent Claims" of a Contributor 60 | means any patent claim(s), including without limitation, method, 61 | process, and apparatus claims, in any patent Licensable by such 62 | Contributor that would be infringed, but for the grant of the 63 | License, by the making, using, selling, offering for sale, having 64 | made, import, or transfer of either its Contributions or its 65 | Contributor Version. 66 | 67 | 1.12. "Secondary License" 68 | means either the GNU General Public License, Version 2.0, the GNU 69 | Lesser General Public License, Version 2.1, the GNU Affero General 70 | Public License, Version 3.0, or any later versions of those 71 | licenses. 72 | 73 | 1.13. "Source Code Form" 74 | means the form of the work preferred for making modifications. 75 | 76 | 1.14. "You" (or "Your") 77 | means an individual or a legal entity exercising rights under this 78 | License. For legal entities, "You" includes any entity that 79 | controls, is controlled by, or is under common control with You. For 80 | purposes of this definition, "control" means (a) the power, direct 81 | or indirect, to cause the direction or management of such entity, 82 | whether by contract or otherwise, or (b) ownership of more than 83 | fifty percent (50%) of the outstanding shares or beneficial 84 | ownership of such entity. 85 | 86 | 2. License Grants and Conditions 87 | -------------------------------- 88 | 89 | 2.1. Grants 90 | 91 | Each Contributor hereby grants You a world-wide, royalty-free, 92 | non-exclusive license: 93 | 94 | (a) under intellectual property rights (other than patent or trademark) 95 | Licensable by such Contributor to use, reproduce, make available, 96 | modify, display, perform, distribute, and otherwise exploit its 97 | Contributions, either on an unmodified basis, with Modifications, or 98 | as part of a Larger Work; and 99 | 100 | (b) under Patent Claims of such Contributor to make, use, sell, offer 101 | for sale, have made, import, and otherwise transfer either its 102 | Contributions or its Contributor Version. 103 | 104 | 2.2. Effective Date 105 | 106 | The licenses granted in Section 2.1 with respect to any Contribution 107 | become effective for each Contribution on the date the Contributor first 108 | distributes such Contribution. 109 | 110 | 2.3. Limitations on Grant Scope 111 | 112 | The licenses granted in this Section 2 are the only rights granted under 113 | this License. No additional rights or licenses will be implied from the 114 | distribution or licensing of Covered Software under this License. 115 | Notwithstanding Section 2.1(b) above, no patent license is granted by a 116 | Contributor: 117 | 118 | (a) for any code that a Contributor has removed from Covered Software; 119 | or 120 | 121 | (b) for infringements caused by: (i) Your and any other third party's 122 | modifications of Covered Software, or (ii) the combination of its 123 | Contributions with other software (except as part of its Contributor 124 | Version); or 125 | 126 | (c) under Patent Claims infringed by Covered Software in the absence of 127 | its Contributions. 128 | 129 | This License does not grant any rights in the trademarks, service marks, 130 | or logos of any Contributor (except as may be necessary to comply with 131 | the notice requirements in Section 3.4). 132 | 133 | 2.4. Subsequent Licenses 134 | 135 | No Contributor makes additional grants as a result of Your choice to 136 | distribute the Covered Software under a subsequent version of this 137 | License (see Section 10.2) or under the terms of a Secondary License (if 138 | permitted under the terms of Section 3.3). 139 | 140 | 2.5. Representation 141 | 142 | Each Contributor represents that the Contributor believes its 143 | Contributions are its original creation(s) or it has sufficient rights 144 | to grant the rights to its Contributions conveyed by this License. 145 | 146 | 2.6. Fair Use 147 | 148 | This License is not intended to limit any rights You have under 149 | applicable copyright doctrines of fair use, fair dealing, or other 150 | equivalents. 151 | 152 | 2.7. Conditions 153 | 154 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted 155 | in Section 2.1. 156 | 157 | 3. Responsibilities 158 | ------------------- 159 | 160 | 3.1. Distribution of Source Form 161 | 162 | All distribution of Covered Software in Source Code Form, including any 163 | Modifications that You create or to which You contribute, must be under 164 | the terms of this License. You must inform recipients that the Source 165 | Code Form of the Covered Software is governed by the terms of this 166 | License, and how they can obtain a copy of this License. You may not 167 | attempt to alter or restrict the recipients' rights in the Source Code 168 | Form. 169 | 170 | 3.2. Distribution of Executable Form 171 | 172 | If You distribute Covered Software in Executable Form then: 173 | 174 | (a) such Covered Software must also be made available in Source Code 175 | Form, as described in Section 3.1, and You must inform recipients of 176 | the Executable Form how they can obtain a copy of such Source Code 177 | Form by reasonable means in a timely manner, at a charge no more 178 | than the cost of distribution to the recipient; and 179 | 180 | (b) You may distribute such Executable Form under the terms of this 181 | License, or sublicense it under different terms, provided that the 182 | license for the Executable Form does not attempt to limit or alter 183 | the recipients' rights in the Source Code Form under this License. 184 | 185 | 3.3. Distribution of a Larger Work 186 | 187 | You may create and distribute a Larger Work under terms of Your choice, 188 | provided that You also comply with the requirements of this License for 189 | the Covered Software. If the Larger Work is a combination of Covered 190 | Software with a work governed by one or more Secondary Licenses, and the 191 | Covered Software is not Incompatible With Secondary Licenses, this 192 | License permits You to additionally distribute such Covered Software 193 | under the terms of such Secondary License(s), so that the recipient of 194 | the Larger Work may, at their option, further distribute the Covered 195 | Software under the terms of either this License or such Secondary 196 | License(s). 197 | 198 | 3.4. Notices 199 | 200 | You may not remove or alter the substance of any license notices 201 | (including copyright notices, patent notices, disclaimers of warranty, 202 | or limitations of liability) contained within the Source Code Form of 203 | the Covered Software, except that You may alter any license notices to 204 | the extent required to remedy known factual inaccuracies. 205 | 206 | 3.5. Application of Additional Terms 207 | 208 | You may choose to offer, and to charge a fee for, warranty, support, 209 | indemnity or liability obligations to one or more recipients of Covered 210 | Software. However, You may do so only on Your own behalf, and not on 211 | behalf of any Contributor. You must make it absolutely clear that any 212 | such warranty, support, indemnity, or liability obligation is offered by 213 | You alone, and You hereby agree to indemnify every Contributor for any 214 | liability incurred by such Contributor as a result of warranty, support, 215 | indemnity or liability terms You offer. You may include additional 216 | disclaimers of warranty and limitations of liability specific to any 217 | jurisdiction. 218 | 219 | 4. Inability to Comply Due to Statute or Regulation 220 | --------------------------------------------------- 221 | 222 | If it is impossible for You to comply with any of the terms of this 223 | License with respect to some or all of the Covered Software due to 224 | statute, judicial order, or regulation then You must: (a) comply with 225 | the terms of this License to the maximum extent possible; and (b) 226 | describe the limitations and the code they affect. Such description must 227 | be placed in a text file included with all distributions of the Covered 228 | Software under this License. Except to the extent prohibited by statute 229 | or regulation, such description must be sufficiently detailed for a 230 | recipient of ordinary skill to be able to understand it. 231 | 232 | 5. Termination 233 | -------------- 234 | 235 | 5.1. The rights granted under this License will terminate automatically 236 | if You fail to comply with any of its terms. However, if You become 237 | compliant, then the rights granted under this License from a particular 238 | Contributor are reinstated (a) provisionally, unless and until such 239 | Contributor explicitly and finally terminates Your grants, and (b) on an 240 | ongoing basis, if such Contributor fails to notify You of the 241 | non-compliance by some reasonable means prior to 60 days after You have 242 | come back into compliance. Moreover, Your grants from a particular 243 | Contributor are reinstated on an ongoing basis if such Contributor 244 | notifies You of the non-compliance by some reasonable means, this is the 245 | first time You have received notice of non-compliance with this License 246 | from such Contributor, and You become compliant prior to 30 days after 247 | Your receipt of the notice. 248 | 249 | 5.2. If You initiate litigation against any entity by asserting a patent 250 | infringement claim (excluding declaratory judgment actions, 251 | counter-claims, and cross-claims) alleging that a Contributor Version 252 | directly or indirectly infringes any patent, then the rights granted to 253 | You by any and all Contributors for the Covered Software under Section 254 | 2.1 of this License shall terminate. 255 | 256 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all 257 | end user license agreements (excluding distributors and resellers) which 258 | have been validly granted by You or Your distributors under this License 259 | prior to termination shall survive termination. 260 | 261 | ************************************************************************ 262 | * * 263 | * 6. Disclaimer of Warranty * 264 | * ------------------------- * 265 | * * 266 | * Covered Software is provided under this License on an "as is" * 267 | * basis, without warranty of any kind, either expressed, implied, or * 268 | * statutory, including, without limitation, warranties that the * 269 | * Covered Software is free of defects, merchantable, fit for a * 270 | * particular purpose or non-infringing. The entire risk as to the * 271 | * quality and performance of the Covered Software is with You. * 272 | * Should any Covered Software prove defective in any respect, You * 273 | * (not any Contributor) assume the cost of any necessary servicing, * 274 | * repair, or correction. This disclaimer of warranty constitutes an * 275 | * essential part of this License. No use of any Covered Software is * 276 | * authorized under this License except under this disclaimer. * 277 | * * 278 | ************************************************************************ 279 | 280 | ************************************************************************ 281 | * * 282 | * 7. Limitation of Liability * 283 | * -------------------------- * 284 | * * 285 | * Under no circumstances and under no legal theory, whether tort * 286 | * (including negligence), contract, or otherwise, shall any * 287 | * Contributor, or anyone who distributes Covered Software as * 288 | * permitted above, be liable to You for any direct, indirect, * 289 | * special, incidental, or consequential damages of any character * 290 | * including, without limitation, damages for lost profits, loss of * 291 | * goodwill, work stoppage, computer failure or malfunction, or any * 292 | * and all other commercial damages or losses, even if such party * 293 | * shall have been informed of the possibility of such damages. This * 294 | * limitation of liability shall not apply to liability for death or * 295 | * personal injury resulting from such party's negligence to the * 296 | * extent applicable law prohibits such limitation. Some * 297 | * jurisdictions do not allow the exclusion or limitation of * 298 | * incidental or consequential damages, so this exclusion and * 299 | * limitation may not apply to You. * 300 | * * 301 | ************************************************************************ 302 | 303 | 8. Litigation 304 | ------------- 305 | 306 | Any litigation relating to this License may be brought only in the 307 | courts of a jurisdiction where the defendant maintains its principal 308 | place of business and such litigation shall be governed by laws of that 309 | jurisdiction, without reference to its conflict-of-law provisions. 310 | Nothing in this Section shall prevent a party's ability to bring 311 | cross-claims or counter-claims. 312 | 313 | 9. Miscellaneous 314 | ---------------- 315 | 316 | This License represents the complete agreement concerning the subject 317 | matter hereof. If any provision of this License is held to be 318 | unenforceable, such provision shall be reformed only to the extent 319 | necessary to make it enforceable. Any law or regulation which provides 320 | that the language of a contract shall be construed against the drafter 321 | shall not be used to construe this License against a Contributor. 322 | 323 | 10. Versions of the License 324 | --------------------------- 325 | 326 | 10.1. New Versions 327 | 328 | Mozilla Foundation is the license steward. Except as provided in Section 329 | 10.3, no one other than the license steward has the right to modify or 330 | publish new versions of this License. Each version will be given a 331 | distinguishing version number. 332 | 333 | 10.2. Effect of New Versions 334 | 335 | You may distribute the Covered Software under the terms of the version 336 | of the License under which You originally received the Covered Software, 337 | or under the terms of any subsequent version published by the license 338 | steward. 339 | 340 | 10.3. Modified Versions 341 | 342 | If you create software not governed by this License, and you want to 343 | create a new license for such software, you may create and use a 344 | modified version of this License if you rename the license and remove 345 | any references to the name of the license steward (except to note that 346 | such modified license differs from this License). 347 | 348 | 10.4. Distributing Source Code Form that is Incompatible With Secondary 349 | Licenses 350 | 351 | If You choose to distribute Source Code Form that is Incompatible With 352 | Secondary Licenses under the terms of this version of the License, the 353 | notice described in Exhibit B of this License must be attached. 354 | 355 | Exhibit A - Source Code Form License Notice 356 | ------------------------------------------- 357 | 358 | This Source Code Form is subject to the terms of the Mozilla Public 359 | License, v. 2.0. If a copy of the MPL was not distributed with this 360 | file, You can obtain one at http://mozilla.org/MPL/2.0/. 361 | 362 | If it is not possible or desirable to put the notice in a particular 363 | file, then You may include the notice in a location (such as a LICENSE 364 | file in a relevant directory) where a recipient would be likely to look 365 | for such a notice. 366 | 367 | You may add additional accurate notices of copyright ownership. 368 | 369 | Exhibit B - "Incompatible With Secondary Licenses" Notice 370 | --------------------------------------------------------- 371 | 372 | This Source Code Form is "Incompatible With Secondary Licenses", as 373 | defined by the Mozilla Public License, v. 2.0. 374 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2017 Opsmate, Inc. 2 | # 3 | # This Source Code Form is subject to the terms of the Mozilla 4 | # Public License, v. 2.0. If a copy of the MPL was not distributed 5 | # with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 | # 7 | # This software is distributed WITHOUT A WARRANTY OF ANY KIND. 8 | # See the Mozilla Public License for details. 9 | 10 | SSLMATE_DOMAIN = sslmate.com 11 | 12 | -include config.mk 13 | 14 | XSLTFLAGS = --xinclude \ 15 | --stringparam sslmate_domain "$(SSLMATE_DOMAIN)" 16 | 17 | all: index.html support.html about.html 18 | 19 | index.html: index.xml template.xslt 20 | xsltproc $(XSLTFLAGS) template.xslt index.xml > $@ 21 | 22 | support.html: support.xml template.xslt 23 | xsltproc $(XSLTFLAGS) template.xslt support.xml > $@ 24 | 25 | about.html: about.xml template.xslt 26 | xsltproc $(XSLTFLAGS) template.xslt about.xml > $@ 27 | 28 | clean: 29 | rm -f *.html 30 | 31 | ifneq ($(DESTDIR),) 32 | install: $(FILES) 33 | install -m 755 -d $(DESTDIR) 34 | install -m 644 index.html $(DESTDIR)/index.html 35 | gzip -n9 < $(DESTDIR)/index.html > $(DESTDIR)/index.htmlgz 36 | install -m 644 support.html $(DESTDIR)/support.html 37 | gzip -n9 < $(DESTDIR)/support.html > $(DESTDIR)/support.htmlgz 38 | install -m 644 about.html $(DESTDIR)/about.html 39 | gzip -n9 < $(DESTDIR)/about.html > $(DESTDIR)/about.htmlgz 40 | uglifyjs generator.js > $(DESTDIR)/generator.js 41 | gzip -n9 < $(DESTDIR)/generator.js > $(DESTDIR)/generator.jsgz 42 | minify --type css style.css > $(DESTDIR)/style.css 43 | gzip -n9 < $(DESTDIR)/style.css > $(DESTDIR)/style.cssgz 44 | install -m 644 github_ribbon.png $(DESTDIR)/github_ribbon.png 45 | else 46 | install: 47 | @echo "Please set DESTDIR variable to use 'make install'" 48 | @false 49 | endif 50 | 51 | .PHONY: all clean install 52 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | This is a simple single-page JavaScript application to help 2 | people generate a CAA policy. It's available online at 3 | . 4 | 5 | If you know of a CA that supports CAA which is not listed here, please 6 | open an issue at or email 7 | sslmate@sslmate.com. 8 | 9 | 10 | LIMITATIONS 11 | 12 | * Does not support parameters to issue and issuewild. 13 | * Does not support multiple iodef properties. 14 | * Does not support properties besides issue, issuewild, and iodef. 15 | * Always generates at least one issue property, so it's not possible 16 | to create a policy which says "allow all CAs to issue non-wildcard 17 | certs, but only some/no CAs to issue wildcard certs." 18 | 19 | 20 | LEGALESE 21 | 22 | Copyright (C) 2016-2022 Opsmate, Inc. 23 | 24 | Licensed under the MPL v2.0. See LICENSE for details. 25 | -------------------------------------------------------------------------------- /about.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | About CAA 13 | 14 | 15 | 16 |
17 |

About CAA

18 | 19 |

20 | There are over 100 organizations, called certificate authorities, 21 | that can issue SSL certificates which vouch for the 22 | identity of your domain. If a certificate authority misbehaves 23 | and gives an attacker a certificate for your domain, the attacker can 24 | impersonate your website and intercept the data of your visitors. 25 |

26 |

27 | If you're like most domain owners, you 28 | get your certificates from only a handful of certificate 29 | authorities. CAA (Certificate Authority Authorization) is a type of DNS 30 | record that lets you declare 31 | which certificate authorities you actually use, forbidding the others 32 | from issuing certificates for your domain. 33 |

34 | 35 |

36 | Here are some reasons for you to use CAA: 37 |

38 | 39 |
    40 |
  • 41 | You want to reduce your risk from insecure certificate authorities. 42 | You can use CAA to limit your domain to certificate authorities which 43 | you trust not to issue unauthorized certificates. 44 |
  • 45 |
  • 46 | You want to stop your employees from obtaining certificates from 47 | unauthorized vendors. 48 |
  • 49 |
50 | 51 |

52 | Setting up CAA is easy. Use the handy CAA generator 53 | to check off the certificate authorities which you authorize. 54 | Then publish the generated DNS records in your domain's DNS. 55 | Your domain needs to be hosted with a DNS provider 56 | that supports CAA. Fortunately, many major DNS providers now support CAA. 57 |

58 | 59 |

60 | CAA is an IETF standard defined by 61 | RFC 8659. As of September 8, 2017, 62 | all public certificate authorities are required to respect CAA records. Before 63 | issuing a certificate for a domain, they must check the domain for CAA 64 | records, and refuse to issue if the CAA record set doesn't authorize them. 65 | (If there is no CAA record, they are allowed to issue.) 66 |

67 | 68 |

CAA and Sub-domains

69 | 70 |

71 | The CAA record set for a domain also applies to all sub-domains, 72 | unless the sub-domain has its own CAA record set. 73 |

74 | 75 |

76 | For example, before a certificate authority issues a certificate for www.example.com, 77 | it will query domains for CAA record sets in the following order, and use the first 78 | record set it finds: 79 |

80 | 81 |
    82 |
  1. www.example.com
  2. 83 |
  3. example.com
  4. 84 |
85 | 86 | 94 | 95 |

CAA and CNAME

96 | 97 |

98 | If a domain name is a CNAME (also known as an alias) for another domain, then 99 | the certificate authority looks for the CAA record set at the CNAME target 100 | (just like any other DNS lookup). If no CAA record set is found, 101 | the certificate authority continues searching parent domains of the original 102 | domain name. 103 |

104 | 105 |

106 | For example, if blog.example.com is a CNAME for blogprovider.example, then 107 | the certificate authority looks for CAA record sets in the following order: 108 |

109 | 110 |
    111 |
  1. blogprovider.example
  2. 112 |
  3. example.com
  4. 113 |
114 | 115 |

116 | As with other DNS record types, it is not possible for a domain name to have 117 | both a CNAME and a CAA record. 118 |

119 | 120 |

Limitations

121 | 122 |

123 | A certificate authority that goes rogue or is totally compromised 124 | can issue a certificate for your domain regardless of what CAA says. Also, 125 | DNS records can be spoofed by a powerful attacker to trick a certificate authority 126 | into thinking that it is authorized. 127 |

128 | 129 |

130 | However, in practice CAA would have protected 131 | domain owners from many of the recent security vulnerabilities 132 | in certificate authorities. Publishing a CAA policy is a very 133 | sensible security measure despite its limitations. 134 |

135 | 136 |

137 | For added protection, use a Certificate Transparency monitor such as 138 | Cert Spotter to alert you if 139 | a certificate is issued that violates your CAA policy. 140 |

141 |
142 |
143 |
144 | -------------------------------------------------------------------------------- /generator.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016-2017 Opsmate, Inc. 3 | * 4 | * This Source Code Form is subject to the terms of the Mozilla 5 | * Public License, v. 2.0. If a copy of the MPL was not distributed 6 | * with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | * 8 | * This software is distributed WITHOUT A WARRANTY OF ANY KIND. 9 | * See the Mozilla Public License for details. 10 | */ 11 | function init_caa_generator (sslmate_domain, form, ca_table, output_zonefile, output_rfc3597, output_tinydns, output_dnsmasq, output_generic, certspotter_link) { 12 | var caahelper_endpoint = "https://web.api." + sslmate_domain + "/caahelper"; 13 | var telemetry_endpoint = "https://web.api." + sslmate_domain + "/telemetry"; 14 | 15 | var session_id = null; 16 | try { 17 | var random_bytes = new Uint8Array(16); 18 | window.crypto.getRandomValues(random_bytes); 19 | session_id = Array.from(random_bytes).map(function(b) { return b.toString(16).padStart(2, "0") }).join(""); 20 | } catch (e) { 21 | } 22 | 23 | function array_equals (a, b) { 24 | if (a.length != b.length) { 25 | return false; 26 | } 27 | for (var i = 0; i < a.length; ++i) { 28 | if (a[i] != b[i]) { 29 | return false; 30 | } 31 | } 32 | return true; 33 | } 34 | function ensure_trailing_dot (str) { 35 | if (str.substr(-1) != ".") { 36 | return str + "."; 37 | } else { 38 | return str; 39 | } 40 | } 41 | function strip_trailing_dot (str) { 42 | if (str.substr(-1) == ".") { 43 | return str.substr(0, str.length - 1); 44 | } else { 45 | return str; 46 | } 47 | } 48 | function make_dictionary (items) { 49 | var dict = {}; 50 | for (var i = 0; i < items.length; ++i) { 51 | dict[items[i]] = true; 52 | } 53 | return dict; 54 | } 55 | function quote (str) { 56 | return '"' + str.replace(/\"/g, "\\\"") + '"'; 57 | } 58 | function make_hex_string (bytes) { 59 | var str = ""; 60 | for (var i = 0; i < bytes.length; ++i) { 61 | var hexStr = bytes[i].toString(16).toUpperCase(); 62 | if (hexStr.length == 1) { 63 | str += "0"; 64 | } 65 | str += hexStr; 66 | } 67 | return str; 68 | } 69 | function canonicalize_domain (domain) { 70 | var re = /^https?:\/\/([^\/]*)/; 71 | var match = re.exec(domain); 72 | if (match) { 73 | domain = match[1]; 74 | } 75 | return domain.toLowerCase(); 76 | } 77 | function make_unknown_record (bytes) { 78 | return "\\# " + bytes.length + " " + make_hex_string(bytes); 79 | } 80 | function make_tinydns_generic_record (bytes) { 81 | var str = ""; 82 | for (var i = 0; i < bytes.length; ++i) { 83 | str += "\\"; 84 | var octalStr = bytes[i].toString(8); 85 | if (octalStr.length == 1) { 86 | str += "00"; 87 | } else if (octalStr.length == 2) { 88 | str += "0"; 89 | } 90 | str += octalStr; 91 | } 92 | return str; 93 | } 94 | function Record (flags, tag, value) { 95 | this.flags = flags; 96 | this.tag = tag; 97 | this.value = value; 98 | 99 | this.format = function () { 100 | return this.flags + " " + this.tag + " " + quote(this.value); 101 | }; 102 | this.encode = function () { 103 | var i; 104 | var bytes = []; 105 | bytes.push(this.flags); 106 | bytes.push(this.tag.length); 107 | for (i = 0; i < this.tag.length; ++i) { 108 | bytes.push(this.tag.charCodeAt(i)); 109 | } 110 | for (i = 0; i < this.value.length; ++i) { 111 | bytes.push(this.value.charCodeAt(i)); 112 | } 113 | return bytes; 114 | }; 115 | } 116 | function decode_record (bytes) { 117 | function decode_string (bytes) { 118 | var str = ""; 119 | for (var i = 0; i < bytes.length; ++i) { 120 | str += String.fromCharCode(bytes[i]); 121 | } 122 | return str; 123 | } 124 | 125 | if (bytes.length < 2) { 126 | return null; 127 | } 128 | var flags = bytes[0]; 129 | var tag_len = bytes[1]; 130 | var tag = decode_string(bytes.slice(2, 2 + tag_len)); 131 | var value = decode_string(bytes.slice(2 + tag_len)); 132 | return new Record(flags, tag, value); 133 | } 134 | function add_unknown_ca_to_form (identifier, allow_issue, allow_issuewild) { 135 | function create_name_col () { 136 | var th = document.createElement("th"); 137 | th.className = "name_col"; 138 | th.appendChild(document.createTextNode(identifier)); 139 | return th; 140 | } 141 | function create_checkbox_col (className, inputName, checked) { 142 | var td = document.createElement("td"); 143 | td.className = className; 144 | var input = document.createElement("input"); 145 | input.type = "checkbox"; 146 | input.name = inputName; 147 | input.value = identifier; 148 | input.checked = checked; 149 | input.onclick = refresh; 150 | td.appendChild(input); 151 | return td; 152 | } 153 | 154 | var tr = document.createElement("tr"); 155 | tr.appendChild(create_name_col()); 156 | tr.appendChild(create_checkbox_col("nonwild_col", "issue", allow_issue)); 157 | tr.appendChild(create_checkbox_col("wild_col", "issuewild", allow_issuewild)); 158 | ca_table.tBodies[0].appendChild(tr); 159 | } 160 | function iodef_from_form (value) { 161 | if (value == "" || value.indexOf("mailto:") == 0 || value.indexOf("http:") == 0 || value.indexOf("https:") == 0) { 162 | return value; 163 | } else { 164 | return "mailto:" + value; 165 | } 166 | } 167 | function iodef_to_form (value) { 168 | if (value.indexOf("mailto:") == 0) { 169 | return value.substr(7); 170 | } else { 171 | return value; 172 | } 173 | } 174 | function Policy (issue, issuewild, iodef) { 175 | this.issue = issue; 176 | this.issuewild = issuewild; 177 | this.iodef = iodef; 178 | 179 | this.is_empty = function () { 180 | return this.issue.length == 0 && this.issuewild.length == 0 && this.iodef == ""; 181 | }; 182 | this.make_records = function () { 183 | var records = []; 184 | var i; 185 | if (this.issue.length == 0) { 186 | records.push(new Record(0, "issue", ";")); 187 | } else { 188 | for (i = 0; i < this.issue.length; ++i) { 189 | records.push(new Record(0, "issue", this.issue[i])); 190 | } 191 | } 192 | if (!array_equals(this.issue, this.issuewild)) { 193 | if (this.issuewild.length == 0) { 194 | records.push(new Record(0, "issuewild", ";")); 195 | } else { 196 | for (i = 0; i < this.issuewild.length; ++i) { 197 | records.push(new Record(0, "issuewild", this.issuewild[i])); 198 | } 199 | } 200 | } 201 | if (this.iodef != "") { 202 | records.push(new Record(0, "iodef", this.iodef)); 203 | } 204 | return records; 205 | }; 206 | this.to_form = function () { 207 | function set_checkboxes (input_name, identifiers) { 208 | var inputs = form[input_name]; 209 | for (var i = 0; i < inputs.length; ++i) { 210 | var values = inputs[i].value.split(' '); 211 | var checked = false; 212 | for (var j = 0; j < values.length; ++j) { 213 | var identifier = values[j]; 214 | if (identifier in identifiers) { 215 | checked = true; 216 | delete identifiers[identifier]; 217 | break; 218 | } 219 | } 220 | inputs[i].checked = checked; 221 | } 222 | for (identifier in identifiers) { 223 | add_unknown_ca_to_form(identifier, input_name == "issue", input_name == "issuewild"); 224 | } 225 | } 226 | set_checkboxes("issue", make_dictionary(this.issue)); 227 | set_checkboxes("issuewild", make_dictionary(this.issuewild)); 228 | form["iodef"].value = iodef_to_form(this.iodef); 229 | }; 230 | } 231 | function make_policy_from_form () { 232 | function get_checkboxes (input_name) { 233 | var items = []; 234 | var inputs = form[input_name]; 235 | for (var i = 0; i < inputs.length; ++i) { 236 | if (inputs[i].checked) { 237 | items.push(inputs[i].value.split(' ')[0]); 238 | } 239 | } 240 | return items; 241 | } 242 | return new Policy(get_checkboxes("issue"), get_checkboxes("issuewild"), iodef_from_form(form["iodef"].value)); 243 | } 244 | function InvalidRecordError (message) { 245 | this.message = message; 246 | } 247 | function PolicyCompatError (message) { 248 | this.message = message; 249 | } 250 | function make_policy_from_records (records) { 251 | function parse_issue_property (str) { 252 | var re = /^[ \t]*([-.0-9a-zA-Z]*)[ \t]*(;(([ \t]*[0-9a-zA-Z]+=[\x21-\x7E]*)*)[ \t]*)?$/; 253 | var m = re.exec(str); 254 | if (!m) { 255 | throw new InvalidRecordError("The issue or issuewild property is malformed"); 256 | } 257 | if (m[3] && m[3] != "") { 258 | throw new PolicyCompatError("issue and issuewild parameters are not supported"); 259 | } 260 | return m[1]; 261 | } 262 | 263 | var has_issue = false; 264 | var issue = []; 265 | var has_issuewild = false; 266 | var issuewild = []; 267 | var iodef = ""; 268 | 269 | for (var i = 0; i < records.length; ++i) { 270 | var record = records[i]; 271 | var tag = record.tag.toLowerCase(); 272 | if (tag == "issue") { 273 | var domain = parse_issue_property(atob(record.value)); 274 | if (domain != "") { 275 | issue.push(domain); 276 | } 277 | has_issue = true; 278 | } else if (tag == "issuewild") { 279 | var domain = parse_issue_property(atob(record.value)); 280 | if (domain != "") { 281 | issuewild.push(domain); 282 | } 283 | has_issuewild = true; 284 | } else if (tag == "iodef") { 285 | if (iodef != "") { 286 | throw new PolicyCompatError("At most one iodef property is supported"); 287 | } 288 | iodef = atob(record.value); 289 | } else { 290 | throw new PolicyCompatError("The " + record.tag + " property is not supported (only issue, issuewild, and iodef are supported)"); 291 | } 292 | } 293 | 294 | if (!has_issue) { 295 | if (has_issuewild || iodef != "") { 296 | throw new PolicyCompatError("Policies without at least one issue property are not supported"); 297 | } 298 | return null; 299 | } 300 | 301 | return new Policy(issue, has_issuewild ? issuewild : issue, iodef); 302 | } 303 | function set_text_output (elt, content) { 304 | while (elt.hasChildNodes()) { 305 | elt.removeChild(elt.firstChild); 306 | } 307 | elt.appendChild(document.createTextNode(content)); 308 | } 309 | function format_zone_file (domain, records) { 310 | var text = ""; 311 | for (var i = 0; i < records.length; ++i) { 312 | text += domain + "\tIN\tCAA\t" + records[i].format() + "\n"; 313 | } 314 | return text; 315 | } 316 | function format_rfc3597_zone_file (domain, records) { 317 | var text = ""; 318 | for (var i = 0; i < records.length; ++i) { 319 | text += domain + "\tIN\tTYPE257\t" + make_unknown_record(records[i].encode()) + "\n"; 320 | } 321 | return text; 322 | } 323 | function format_tinydns_zone_file (domain, records) { 324 | // see https://cr.yp.to/djbdns/tinydns-data.html 325 | // see https://github.com/SSLMate/caa_helper/issues/21#issuecomment-293424734 326 | // :example.com:257:\000\005\151\163\163\165\145\143\157\155\157\144\157\143\141\056\143\157\155 327 | var text = ""; 328 | for (var i = 0; i < records.length; ++i) { 329 | text += ":" + strip_trailing_dot(domain) + ":257:" + make_tinydns_generic_record(records[i].encode()) + "\n"; 330 | } 331 | return text; 332 | } 333 | function format_dnsmasq_options (domain, records) { 334 | // see http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html 335 | // --dns-rr=example.com,257,00056973737565636F6D6F646F63612E636F6D 336 | var text = ""; 337 | for (var i = 0; i < records.length; ++i) { 338 | text += "--dns-rr=" + strip_trailing_dot(domain) + ",257," + make_hex_string(records[i].encode()) + "\n"; 339 | } 340 | return text; 341 | } 342 | function set_generic_table (table, domain, records) { 343 | function add_cell (row, rowSpan, content) { 344 | var span = document.createElement("span"); 345 | span.appendChild(document.createTextNode(content)); 346 | var cell = row.insertCell(row.cells.length); 347 | cell.rowSpan = rowSpan; 348 | cell.appendChild(span); 349 | return span; 350 | } 351 | 352 | while (table.rows.length > 0) { 353 | table.deleteRow(0); 354 | } 355 | for (var i = 0; i < records.length; ++i) { 356 | var row = table.insertRow(table.rows.length); 357 | if (i == 0) { 358 | add_cell(row, records.length, domain); 359 | add_cell(row, records.length, "CAA"); 360 | } 361 | add_cell(row, 1, records[i].format()); 362 | } 363 | } 364 | function display_records (domain, records) { 365 | set_text_output(output_zonefile, format_zone_file(domain, records)); 366 | set_text_output(output_rfc3597, format_rfc3597_zone_file(domain, records)); 367 | set_text_output(output_tinydns, format_tinydns_zone_file(domain, records)); 368 | set_text_output(output_dnsmasq, format_dnsmasq_options(domain, records)); 369 | set_generic_table(output_generic, domain, records); 370 | } 371 | function refresh () { 372 | var domain = canonicalize_domain(form["domain"].value); 373 | display_records(domain == "" ? "example.com." : ensure_trailing_dot(domain), make_policy_from_form().make_records()); 374 | } 375 | function apply_ca_filter () { 376 | var ca_filter = form["ca_filter"].value.toLowerCase(); 377 | for (var i = 0; i < ca_table.tBodies[0].rows.length; ++i) { 378 | var row = ca_table.tBodies[0].rows[i]; 379 | if (row.cells[0].textContent.toLowerCase().indexOf(ca_filter) == -1 && row.dataset.identifiers.indexOf(ca_filter) == -1) { 380 | row.className = "hidden"; 381 | } else { 382 | row.className = ""; 383 | } 384 | } 385 | } 386 | function clear_ca_filter () { 387 | form["ca_filter"].value = ""; 388 | apply_ca_filter(); 389 | } 390 | 391 | function handle_lookup_result (result) { 392 | var domain = strip_trailing_dot(result["domain"]); 393 | if (result["status"] == "success") { 394 | if (result["operation"] == "autogenerate" && result["has_unknown_ca"]) { 395 | alert(domain + " has certificates that were issued by unknown CAs. These certificates have been ignored and will not be reflected in the auto-generated policy."); 396 | } 397 | try { 398 | var policy = make_policy_from_records(result["records"]); 399 | if (policy) { 400 | policy.to_form(); 401 | refresh(); 402 | } else { 403 | if (result["operation"] == "lookup") { 404 | alert(domain + " does not have a CAA policy. Any certificate authority can issue certificates, unless there is a CAA policy at a parent domain."); 405 | } else if (result["operation"] == "autogenerate") { 406 | alert("No unexpired certificates for " + domain + " were found in Certificate Transparency logs."); 407 | } 408 | } 409 | } catch (e) { 410 | if (e instanceof InvalidRecordError) { 411 | alert(domain + " has an invalid CAA record: " + e.message); 412 | } else if (e instanceof PolicyCompatError) { 413 | alert(domain + " has a complicated CAA policy that this tool doesn't support: " + e.message); 414 | } else { 415 | throw e; 416 | } 417 | } 418 | } else if (result["status"] == "broken") { 419 | alert(domain + " has broken DNS servers that do not handle CAA properly: " + result["message"]); 420 | } else if (result["status"] == "servfail") { 421 | alert("Error looking up the DNS records for " + domain + ": " + result["message"]); 422 | } else if (result["status"] == "error") { 423 | alert(result["message"]); 424 | } 425 | } 426 | 427 | var lookup_xhr = new XMLHttpRequest(); 428 | lookup_xhr.onreadystatechange = function() { 429 | if (lookup_xhr.readyState == 4) { 430 | if (lookup_xhr.status == 0) { 431 | alert("Unable to lookup policy because there was an error communicating with the server."); 432 | } else if (lookup_xhr.status != 200) { 433 | alert("Unable to lookup policy: " + lookup_xhr.responseText); 434 | } else if (lookup_xhr.getResponseHeader("Content-Type") != "application/json") { 435 | alert("Unable to lookup policy because the server sent us a bad response."); 436 | } else { 437 | handle_lookup_result(eval("(" + lookup_xhr.responseText + ")")); 438 | } 439 | } 440 | }; 441 | 442 | function send_telemetry(action, send_empty) { 443 | try { 444 | var data = { 445 | referrer: document.referrer, 446 | domain: canonicalize_domain(form["domain"].value), 447 | orig_domain: form["domain"].value, 448 | policy: make_policy_from_form(), 449 | }; 450 | if (data.domain == "" && data.policy.is_empty() && !send_empty) { 451 | return; 452 | } 453 | navigator.sendBeacon(telemetry_endpoint, new URLSearchParams({ 454 | session_id: session_id, 455 | action: "caarecord:"+action, 456 | data: JSON.stringify(data), 457 | })); 458 | } catch (e) { 459 | console.log(e); 460 | } 461 | } 462 | 463 | function empty_policy () { 464 | send_telemetry("empty_policy", true); 465 | new Policy([], [], "").to_form(); 466 | refresh(); 467 | } 468 | function use_sslmate_policy () { 469 | send_telemetry("use_sslmate_policy", true); 470 | var sslmate_cas = [ 'sectigo.com', 'letsencrypt.org' ]; 471 | new Policy(sslmate_cas, sslmate_cas, "").to_form(); 472 | refresh(); 473 | } 474 | function autogenerate_policy () { 475 | send_telemetry("autogenerate_policy", true); 476 | var domain = canonicalize_domain(form["domain"].value); 477 | if (domain == "") { 478 | alert("Please enter a domain name."); 479 | form["domain"].focus(); 480 | return; 481 | } 482 | lookup_xhr.open("GET", caahelper_endpoint + "/autogenerate/" + encodeURIComponent(ensure_trailing_dot(domain))); 483 | lookup_xhr.send(); 484 | } 485 | function load_policy () { 486 | send_telemetry("load_policy", true); 487 | var domain = canonicalize_domain(form["domain"].value); 488 | if (domain == "") { 489 | alert("Please enter a domain name."); 490 | form["domain"].focus(); 491 | return; 492 | } 493 | lookup_xhr.open("GET", caahelper_endpoint + "/lookup/" + encodeURIComponent(ensure_trailing_dot(domain))); 494 | lookup_xhr.send(); 495 | } 496 | function fetch_issuers () { 497 | return fetch(caahelper_endpoint + "/issuers").then(function(resp) { return resp.json(); }); 498 | } 499 | function populate_ca_table (issuers) { 500 | function make_name_cell (name, aliases) { 501 | var col = document.createElement("th"); 502 | col.className = "name_col"; 503 | col.appendChild(document.createTextNode(name)); 504 | if (aliases.length > 0) { 505 | var aka = document.createElement("span"); 506 | aka.className = "aka"; 507 | aka.appendChild(document.createTextNode(aliases.join(", "))); 508 | col.appendChild(aka); 509 | } 510 | return col; 511 | } 512 | function make_checkbox_cell (class_name, name, value) { 513 | var checkbox = document.createElement("input"); 514 | checkbox.type = "checkbox"; 515 | checkbox.name = name; 516 | checkbox.value = value; 517 | 518 | var col = document.createElement("td"); 519 | col.className = class_name; 520 | col.appendChild(checkbox); 521 | return col; 522 | } 523 | 524 | for (var i = 0; i < issuers.length; ++i) { 525 | var issuer = issuers[i]; 526 | var domains = issuer.domains.filter(x => !issuer.delegated_domains.includes(x)); 527 | var identifiers = domains.join(" "); 528 | if (domains.length === 0) { 529 | continue; 530 | } 531 | 532 | var row = document.createElement("tr"); 533 | row.dataset.identifiers = identifiers; 534 | row.appendChild(make_name_cell(issuer.name, issuer.aka)); 535 | row.appendChild(make_checkbox_cell("nonwild_col", "issue", identifiers)); 536 | row.appendChild(make_checkbox_cell("wild_col", "issuewild", identifiers)); 537 | 538 | ca_table.tBodies[0].appendChild(row); 539 | } 540 | } 541 | 542 | fetch_issuers().then(function(issuers) { 543 | populate_ca_table(issuers); 544 | 545 | for (var i = 0; i < form.elements.length; ++i) { 546 | var elt = form.elements[i]; 547 | if (elt.name == "issue" || elt.name == "issuewild") { 548 | elt.onclick = refresh; 549 | } else if (elt.name == "domain" || elt.name == "iodef") { 550 | elt.onchange = refresh; 551 | elt.onkeyup = refresh; 552 | } else if (elt.name == "ca_filter") { 553 | elt.onchange = apply_ca_filter; 554 | elt.onkeyup = apply_ca_filter; 555 | } else if (elt.name == "clear_ca_filter") { 556 | elt.onclick = clear_ca_filter; 557 | } else if (elt.name == "empty_policy") { 558 | elt.onclick = empty_policy; 559 | } else if (elt.name == "use_sslmate_policy") { 560 | elt.onclick = use_sslmate_policy; 561 | } else if (elt.name == "autogenerate_policy") { 562 | elt.onclick = autogenerate_policy; 563 | } else if (elt.name == "load_policy") { 564 | elt.onclick = load_policy; 565 | } 566 | } 567 | 568 | refresh(); 569 | apply_ca_filter(); 570 | }); 571 | 572 | certspotter_link.addEventListener("click", function() { 573 | send_telemetry("certspotter_link", true); 574 | }); 575 | document.addEventListener("visibilitychange", function() { 576 | if (document.visibilityState == "hidden") { 577 | send_telemetry("end_session", false); 578 | } 579 | }); 580 | } 581 | -------------------------------------------------------------------------------- /github_ribbon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SSLMate/caa_helper/f54940e657cd59de5d984fa93ac89db43df1c1b9/github_ribbon.png -------------------------------------------------------------------------------- /index.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | CAA Record Generator 13 | 14 | 15 | 28 | 29 | 30 |
31 |
32 |
33 |

34 | Over a hundred certificate authorities (CAs) have the power to issue 35 | certificates which vouch for the identity of your website. Certificate 36 | Authority Authorization (CAA) is a way for you to restrict issuance to the CAs you 37 | actually use so you can reduce your risk from security vulnerabilities 38 | in all the others. Setting up CAA is an easy way to improve 39 | your website's security. Learn More 40 |

41 |
42 | 43 |
44 |

1. Enter Your Domain Name

45 | 46 |

47 | 48 |

49 |
50 | 51 |
52 |

2. Choose an Initial Policy

53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 |
You'll start with an empty policy that prohibits all CAs.
Your policy will allow only the CAs used by SSLMate.
We'll use Certificate Transparency to see which CAs you're currently using.
We'll load your existing CAA record set so you can make adjustments.
72 |
73 | 74 |
75 |

3. Select Authorized Certificate Authorities

76 | 77 |

78 | Check off the certificate authorities which you authorize to issue certificates 79 | for your domain. You can separately authorize the issuance of wildcard and non-wildcard certificates. 80 |

81 | 82 |
83 |

84 | 85 | 86 | 87 |

88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 |
Type of certificate
Non-WildcardWildcard
104 |
105 |
106 | 107 |
108 |

4. Incident Reporting (Optional)

109 | 110 |

111 | You can specify an email address or URL for reporting certificate 112 | requests or issued certificates that violate your CAA policy. 113 | Reports will be provided in iodef format. 114 |

115 | 116 |

117 | 118 |

119 |
120 | 121 |
122 |

5. Publish Your CAA Policy

123 | 124 |

125 | Add the following CAA records to your 126 | domain's DNS. Your DNS must be hosted with a 127 | service that supports CAA. 128 |

129 | 130 |
131 |
132 |

Generic

133 |

For Google Cloud DNS, Route 53, DNSimple, and other hosted DNS services

134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 |
NameTypeValue
143 |
144 | 145 |
146 |

Standard Zone File

147 |

For BIND ≥9.9.6, PowerDNS ≥4.0.0, NSD ≥4.0.1, Knot DNS ≥2.2.0

148 | 149 |

150 | 						
151 | 152 |
153 |

Legacy Zone File (RFC 3597 Syntax)

154 |

For BIND <9.9.6, NSD <4.0.1, Windows Server 2016

155 | 156 |

157 | 						
158 | 159 |
160 |

tinydns

161 |

162 | 163 |

164 | 						
165 | 166 |
167 |

dnsmasq

168 |

169 | 170 |

171 | 						
172 | 173 |
174 |
175 | 176 |
177 |

5. Monitor Your Domain (Optional)

178 | 179 |

180 | Even if you publish a CAA record, a noncompliant certificate authority 181 | can ignore your CAA records. Use Cert Spotter 182 | to monitor Certificate Transparency logs so you'll be notified if this happens. 183 |

184 |
185 |
186 |
187 |
188 |
189 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2016-2017 Opsmate, Inc. 3 | * 4 | * This Source Code Form is subject to the terms of the Mozilla 5 | * Public License, v. 2.0. If a copy of the MPL was not distributed 6 | * with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 | * 8 | * This software is distributed WITHOUT A WARRANTY OF ANY KIND. 9 | * See the Mozilla Public License for details. 10 | */ 11 | html, body { color: black; background: white; font-family: sans-serif; margin: 0; padding: 0; } 12 | a:link, .link { color: #00A; } 13 | a:visited { color: #639; } 14 | a[href]:hover, a[href]:focus, .link:hover, .link:focus { color: #06F; } 15 | a:active, .link:active { color: #669; } 16 | a, a:link, a:hover, a:visited, a:active, .link { text-decoration: underline; } 17 | button.link { display: inline; padding: 0; margin: 0; border: none; background: none; outline: none; } 18 | 19 | #masthead { text-align: center; margin: 0 0 1.5em 0; border-bottom: solid black 1px; position: relative; z-index: 10; } 20 | #masthead p.by { margin: 0.5em 0; } 21 | #masthead h1 { font-size: 150%; margin: 0; } 22 | #masthead ul.nav { margin: 0.5em 0; padding: 0; display: block; } 23 | #masthead ul.nav li { margin: 0 0.5em; padding: 0; display: inline; line-height: 1.5em; } 24 | #masthead ul.nav a { white-space: nowrap; } 25 | #footer { margin-top: 3em; text-align: center; color: #777; font-size: 85%; } 26 | #footer p { margin: 0; } 27 | #root { max-width: 50em; margin: 0 auto; font-size: 13pt; padding: 1.5em 2em 0.5em 2em; } 28 | #github_ribbon { display: block; position: absolute; top: 0; right: 0; width: 149px; height: 149px; background: url(github_ribbon.png) left; z-index: 9; } 29 | #github_ribbon:hover { background-position: right; } 30 | @media (max-width: 500px) { 31 | #github_ribbon { display: none; } 32 | } 33 | 34 | .generator .instructions, .generator .overview p { line-height: 150%; text-align: justify; } 35 | .generator .overview { margin-bottom: 1.5em; } 36 | .generator .section { margin-bottom: 2em; } 37 | .generator table.policy_selection td { padding: 0.25em 0; font-size: 90%; vertical-align: middle; } 38 | .generator table.policy_selection button { white-space: nowrap; width: 15em; margin-right: 0.5em; } 39 | @media (max-width: 500px) { 40 | .generator table.policy_selection { display: block; } 41 | .generator table.policy_selection td { display: block; } 42 | .generator table.policy_selection tr { display: block; margin-top: 0.5em; } 43 | .generator table.policy_selection tr:first-child { margin-top: 0; } 44 | } 45 | .generator input[type=text] { color: #444; border-radius: 3px; padding: 0.3em 0.4em; background-color: #fff; border: 1px solid #ccc; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); transition: border linear .2s, box-shadow linear .2s; } 46 | .generator input[type=text]:focus { border-color: rgba(82, 108, 236, 0.8); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82, 108, 236, 0.6); } 47 | .generator .ca_selector { background: #eee; padding: 0.4em; border: solid #999 1px; border-radius: 3px; margin: 0 0 2em 0; overflow: auto; } 48 | .generator .ca_selector p { margin: 0; } 49 | .generator .ca_selector table { margin: 1em 0; border-collapse: collapse; } 50 | .generator .ca_selector tr.hidden { display: none; } 51 | .generator .ca_selector td, .generator .ca_selector th { padding: 0.3em 0.5em; } 52 | .generator .ca_selector th { font-weight: bold; } 53 | .generator .ca_selector table { table-layout: fixed; width: 35em; } 54 | .generator .ca_selector .name_col { min-width: 15em; } 55 | .generator .ca_selector .nonwild_col { min-width: 9em; } 56 | .generator .ca_selector thead .wild_col { width: 9.5em; padding-right: 1.5em; } 57 | .generator .ca_selector tbody .wild_col { width: 11em; } 58 | .generator .ca_selector .type_col { width: 20em; } 59 | .generator .ca_selector thead tr { display: block; position: relative; } 60 | .generator .ca_selector tbody { display: block; overflow: auto; height: 500px; width: 100%; } 61 | .generator .ca_selector tbody th { text-align: right; } 62 | .generator .ca_selector thead th { text-align: center; } 63 | .generator .ca_selector thead th { border-bottom: solid #333 1px; } 64 | .generator .ca_selector td { text-align: center; } 65 | .generator .ca_selector .owner { font-size: 66%; font-variant: small-caps; color: #666; } 66 | .generator .ca_selector .owner:before { content: "("; } 67 | .generator .ca_selector .owner:after { content: ")"; } 68 | .generator .ca_selector .aka { font-size: 66%; display: block; color: #666; font-variant: small-caps; } 69 | .generator h2 { margin: 0 0 0.5em 0; font-size: 150%; font-weight: bold; } 70 | .generator .output > div { margin: 0 0 1.5em 0; } 71 | .generator .output h3 { margin-bottom: 0.5em; font-size: 110%; font-weight: bold; } 72 | .generator .output p.software { font-style: italic; margin: 0.4em 0 1em 0; font-size: 83%; } 73 | .generator .output pre { background: #eee; padding: 0.4em 0.5em; overflow: auto; border: solid #999 1px; border-radius: 3px; font-size: 83%; margin: 0; } 74 | .generator .output table { background: #eee; padding: 0.4em 0; border: solid #999 1px; border-radius: 3px; font-size: 83%; margin: 0; } 75 | .generator .output table th { padding: 0 0.5em 0.4em 0.5em; font-weight: bold; text-align: left; } 76 | .generator .output table td { padding: 0 0.5em 0 0.5em; vertical-align: top; } 77 | .generator .output table span { white-space: pre; font-family: monospace; } 78 | 79 | div.support p { line-height: 150%; text-align: justify; } 80 | div.support div.overview { margin-bottom: 1.5em; } 81 | div.support div.section { margin-bottom: 2em; } 82 | div.support table.support { width: 100%; border-collapse: collapse; margin: 0; padding: 0; } 83 | div.support table.support td, div.support table.support th { padding: 0.4em; border: solid black 1px; } 84 | div.support table.support td.support { text-align: center; } 85 | div.support table.support thead tr { background: #d6d6d6; } 86 | /* 87 | div.support table.support tbody tr:nth-child(even) { background: #f3f3f3; } 88 | */ 89 | div.support table.support tr.broken td.support { background: #f99; } 90 | div.support table.support tr.supported td.support { background: #9f9; } 91 | div.support table.support tr.unsupported td.support { background: #ff9; } 92 | 93 | div.about p { line-height: 150%; text-align: justify; } 94 | div.about li { line-height: 150%; text-align: justify; margin-right: 2em; margin-bottom: 0.5em; } 95 | div.about h3 { margin-top: 1.5em; } 96 | -------------------------------------------------------------------------------- /support.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | Who Supports CAA Records? 13 | 14 | 15 | 16 |
17 |

Who Supports CAA?

18 | 19 |
20 |

21 | If you want to publish a CAA record, your domain's DNS software (or provider) needs to support CAA. 22 | This page tells you which DNS software and providers support CAA. 23 |

24 | 25 |

26 | If you don't want to publish a CAA record, it shouldn't matter whether or not your 27 | domain's DNS software supports CAA, since the DNS protocol provides a way to add 28 | new record types in a backwards compatible way. Unfortunately, some DNS software 29 | is broken and mishandles unsupported record types such as CAA. If your domain 30 | uses such DNS software, you may have trouble getting certificates for your domain. 31 |

32 | 33 |

34 | Please open an issue if you have 35 | an addition to this page. 36 |

37 |
38 | 39 |
40 |

Software

41 | 42 | 43 | 44 | BIND 45 | Prior to version 9.9.6 use RFC 3597 syntax 46 | 47 | 48 | NSD 49 | Prior to version 4.0.1 use RFC 3597 syntax 50 | 51 | 52 | PowerDNS 53 | 4.0.0 54 | Versions 4.0.3 and below are buggy when DNSSEC is enabled. 55 | 56 | 57 | Knot DNS 58 | 2.2.0 59 | 60 | 61 | Simple DNS Plus 62 | 6.0 63 | 64 | 65 | Windows Server 2016 66 | Use RFC 3597 syntax 67 | 68 | 69 | tinydns 70 | Use generic record syntax 71 | 72 | 73 | dnsmasq 74 | Use --dns-rr option with hex data 75 | 76 | 77 | ldns 78 | 1.6.17 79 | 80 | 81 | OpenDNSSEC 82 | With ldns ≥1.6.17 83 | 84 | 85 |
86 | 87 |
88 |

Providers

89 | 90 | 91 | 92 | Google Cloud DNS 93 | 94 | 95 | Google Domains DNS 96 | 97 | 98 | Route 53 99 | 100 | 101 | DNSimple 102 | 103 | 104 | DNS Made Easy 105 | 106 | 107 | Constellix DNS 108 | 109 | 110 | Cloudflare 111 | Cloudflare will add additional CAA records unless you disable Universal SSL. 112 | 113 | 114 | Dyn Managed DNS 115 | 116 | 117 | ClouDNS 118 | 119 | 120 | Afraid.org Free DNS 121 | 122 | 123 | Neustar UltraDNS 124 | 125 | 126 | Gandi 127 | 128 | 129 | Domeneshop (Domainnameshop) 130 | 131 | 132 | Hurricane Electric Free DNS 133 | 134 | 135 | BuddyNS 136 | 137 | 138 | NS1 139 | 140 | 141 | Zilore 142 | 143 | 144 | Nucleus NV 145 | 146 | 147 | Mythic Beasts 148 | 149 | 150 | NameBright 151 | 152 | 153 | ezyreg.com (Netregistry) 154 | Does not respond to CAA queries over UDP 155 | 156 | 157 | LM Data 158 | Responds to CAA queries with a NOTIMP error 159 | 160 | 161 | core-networks.de 162 | 163 | 164 | CloudXNS 165 | 166 | 167 | Namecheap 168 | 169 | 170 | Hetzner 171 | 172 | 173 | hosting.de 174 | 175 | 176 | STRATO 177 | 178 | 179 | http.net 180 | 181 | 182 | Internap 183 | Responds to CAA queries with a SERVFAIL error 184 | 185 | 186 | Vultr 187 | 188 | 189 | Digital Ocean 190 | 191 | 192 | INWX 193 | 194 | 195 | schokokeks.org 196 | 197 | 198 | easyDNS 199 | 200 | 201 | Linode 202 | 203 | 204 | GratisDNS 205 | 206 | 207 | Rackspace Cloud DNS 208 | 209 | 210 | Azure 211 | 212 | 213 | Dreamhost 214 | 215 | 216 | UD Media 217 | 218 | 219 | name.com 220 | 221 | 222 | OVH 223 | 224 | 225 | 1&1 226 | 227 | 228 | Enom/Tucows 229 | 230 | 231 | Netcup 232 | 233 | 234 | 34SP.com 235 | 236 | 237 | iwantmyname 238 | Requires opening a support ticket 239 | 240 | 241 | GoDaddy 242 | 243 | 244 | SoftLayer 245 | 246 | 247 | CloudfloorDNS 248 | 249 | 250 | Hostwinds 251 | 252 | 253 | Hover 254 | 255 | 256 | 123 Reg 257 | 258 | 259 | Futureweb 260 | 261 | 262 | Lightsail DNS 263 | Relevant forum thread 264 | 265 | 266 | Crazy Domains 267 | 268 | 269 | Alibaba Cloud DNS 270 | 271 | 272 | No-IP Dynamic DNS 273 | 274 | 275 | UKFast 276 | 277 | 278 | NameSilo 279 | 280 | 281 | Metaname 282 | 283 | 284 | Glauca HexDNS 285 | 286 | 287 | DNSPod 288 | 289 | 290 | WebHostOne 291 | 292 | 293 | Opalstack 294 | 295 | 296 | domaindiscount24 297 | 298 | 299 | Pair Domains 300 | 301 | 302 | deSEC 303 | 304 | 305 |
306 |
307 |
308 |
309 | -------------------------------------------------------------------------------- /template.xslt: -------------------------------------------------------------------------------- 1 | 11 | 16 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | <xsl:value-of select="caa:title"/> 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 |
54 |
55 |

CAA Record Helper

56 |

By SSLMate

57 | 62 |
63 | 64 | 65 | 66 | 69 |
70 | 71 | 72 |
73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 |
Software/ProviderSupportComments
86 |
87 | 88 | 89 | 90 | 91 | unsupported 92 | broken 93 | supported 94 | 95 | 96 | 97 | 98 | 99 | No 100 | Broken 101 | 102 | Yes 103 | 104 | 105 | 106 | 107 | 108 |
109 | --------------------------------------------------------------------------------