Created
July 15, 2019 17:07
-
-
Save agnaite/5dfca74bed6f1f026e056ffca52a6bc5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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