silverwind / caa

rfc6844-conform CAA record lookup and validation
BSD 2-Clause "Simplified" License
8 stars 2 forks source link
caa dns letsencrypt module nodejs tls

caa

rfc6844-conform CAA record lookup and validation

Usage

import {caa, caaMatches} from "caa";

await caa("example.com");
// => [{flags: 0, tag: 'issue', value: 'letsencrypt.org', issuerCritical: false}]

await caaMatches("example.com", "letsencrypt.org");
// => true

API

caa(name, [options])

Retrieve the CAA records which apply to name. Returns a CAA object.

caaMatches(name, ca, [options])

Test if the CAA record for name matches for certificate authority ca.

options

License

© silverwind, distributed under BSD licence