Skip to content

Instantly share code, notes, and snippets.

@agnaite
Created July 15, 2019 17:07
Show Gist options
  • Save agnaite/5dfca74bed6f1f026e056ffca52a6bc5 to your computer and use it in GitHub Desktop.
Save agnaite/5dfca74bed6f1f026e056ffca52a6bc5 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"os"
"github.com/jetstack/cert-manager/pkg/issuer/acme/dns/util"
)
func main() {
domain := os.Args[1]
nameservers := []string{"8.8.8.8:53"}
issuer := []string{"letsencrypt.org"}
err := util.ValidateCAA(domain, issuer, false, nameservers)
fmt.Println(err)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment