Documentation ¶
Index ¶
- Variables
- func CheckChallengeCnameCorrect(applyDomain string, txt_tag string, hostedDomain string) error
- func CheckCnameCorrect(applyDomain string, txt_tag string, hostedDomain string) error
- func GenCnameSetting(applyDomain string, txt_tag string, hostedDomain string) (hostDomainCname string, challengeRecord string, challengeTarget string)
- func LookupCNAME(src string) (dst []string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ChallengeCnameErr = errors.New("challenge cname error")
View Source
var CustomHostDomainCnameErr = errors.New("host domain cname error")
Functions ¶
func CheckChallengeCnameCorrect ¶
CheckChallengeCnameCorrect
before apply must set dns record in customer's dns server example abc.customer.com (customer's domain who wants to have a certificate ) hosted.com (hosted.com is the domain already registered in the server , this should be provided to customer) tag (sub domain tag provided by customer) set cname record 1. customer add CNAME abc.customer.com => tag.hosted.com 2. customer add CNAME _acme-challenge.abc.customer.com => _acme-challenge.abc.tag.hosted.com
func CheckCnameCorrect ¶
func GenCnameSetting ¶
func GenCnameSetting(applyDomain string, txt_tag string, hostedDomain string) (hostDomainCname string, challengeRecord string, challengeTarget string)
GenCnameSetting
example abc.customer.com (customer's domain who wants to have a certificate ) hosted.com (hosted.com is the domain already registered in the server , this should be provided to customer) tag (sub domain tag provided by customer) set cname record 1. customer add CNAME abc.customer.com => tag.hosted.com 2. customer add CNAME _acme-challenge.abc.customer.com => _acme-challenge.abc.tag.hosted.com
func LookupCNAME ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.