user_record_validator

package
v0.0.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func CheckChallengeCnameCorrect(applyDomain string, txt_tag string, hostedDomain string) error

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 CheckCnameCorrect(applyDomain string, txt_tag string, hostedDomain string) error

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

func LookupCNAME(src string) (dst []string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL