 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
const (
	// ACMETLS1Protocol is the ALPN Protocol ID for the ACME-TLS/1 Protocol.
	ACMETLS1Protocol = "acme-tls/1"
)
    Variables ¶
This section is empty.
Functions ¶
func ChallengeBlocks ¶
ChallengeBlocks returns PEM blocks (certPEMBlock, keyPEMBlock) with the acmeValidation-v1 extension and domain name for the `tls-alpn-01` challenge.
func ChallengeCert ¶
func ChallengeCert(domain, keyAuth string) (*tls.Certificate, error)
ChallengeCert returns a certificate with the acmeValidation-v1 extension and domain name for the `tls-alpn-01` challenge.
Types ¶
type Challenge ¶
type Challenge struct {
	// contains filtered or unexported fields
}
    func NewChallenge ¶
func (*Challenge) SetProvider ¶
type ProviderServer ¶
type ProviderServer struct {
	// contains filtered or unexported fields
}
    ProviderServer implements ChallengeProvider for `TLS-ALPN-01` challenge. It may be instantiated without using the NewProviderServer if you want only to use the default values.
func NewProviderServer ¶
func NewProviderServer(iface, port string) *ProviderServer
NewProviderServer creates a new ProviderServer on the selected interface and port. Setting iface and / or port to an empty string will make the server fall back to the "any" interface and port 443 respectively.
func (*ProviderServer) CleanUp ¶
func (s *ProviderServer) CleanUp(domain, token, keyAuth string) error
CleanUp closes the HTTPS server.
func (*ProviderServer) GetAddress ¶
func (s *ProviderServer) GetAddress() string
func (*ProviderServer) Present ¶
func (s *ProviderServer) Present(domain, token, keyAuth string) error
Present generates a certificate with a SHA-256 digest of the keyAuth provided as the acmeValidation-v1 extension value to conform to the ACME-TLS-ALPN spec.