Documentation ¶
Overview ¶
Package xacme implements part of rfc8555. https://tools.ietf.org/html/rfc8555
Index ¶
- Constants
- func FmtX509KeyID(id []byte) string
- func GetJWKThumbprintWithBase64url(key interface{}) (string, error)
- func NewAcmeNonce(url string) *acmeNonce
- func Sha256WithBase64url(b []byte) (d string)
- type Account
- type CaMeta
- type CertInfo
- type Client
- type Config
- type HTTPHeaderLink
- type IdlChallenge
- type IdlIdentifier
- type IdlReqNewAccountPayload
- type IdlReqNewOrderPayload
- type IdlRespDir
- type IdlRespDownLoadAuthorizationResources
- type IdlRespErr
- type IdlRespFinalize
- type IdlRespNewAccount
- type IdlRespNewOrder
- type IdlSignReq
- type Option
Constants ¶
View Source
const ( CaLetsencrypt = "letsencrypt" CaLetsencryptStaging = "letsencrypt_staging" CaLetsencryptRootCaKeyIdIsrgRootX1 = "79:B4:59:E6:7B:B6:E5:E4:01:73:80:08:88:C8:1A:58:F6:E9:9B:6E" CaLetsencryptRootCaKeyIdDstRootCaX3 = "C4:A7:B1:A4:7B:2C:71:FA:DB:E1:4B:90:75:FF:C4:15:60:85:89:10" CaLetsencryptStagingRootCaKeyIdFakeLeRootX1 = "C1:26:74:A4:8A:44:A0:E6:FA:20:28:D8:5C:23:9A:45:88:18:79:E0" CaLetsencryptStagingRootCaKeyIdFakeLeRootX2 = "1B:FB:1C:F0:31:7D:03:2B:DA:0A:9B:AF:78:A6:F6:99:91:19:9C:B2" )
Variables ¶
This section is empty.
Functions ¶
func GetJWKThumbprintWithBase64url ¶
Types ¶
type Account ¶
type Account struct { Contact []string TOSAgreed bool AcctURL string PrivateKey *ecdsa.PrivateKey PemPrivateKey string }
Account contains acme account data.
type CaMeta ¶
CaMeta contains the Directory URL.
type CertInfo ¶
type CertInfo struct { SignatureAlgorithm string PemCertPrivateKey string PemCertChain string PemCertBody string PemCertBodyWithChain string NotBefore string NotAfter string RootCAKeyID string }
Account contains signed cert info.
type Client ¶
type Client interface { // CreateAccountWithEmail create acme account with email. CreateAccountWithEmail(email string, TOSAgreed bool) (*Account, error) // SetAccount set Account for acme client. SetAccount(acct *Account) (*Account, error) // CreateAccountWithPrivateKey create acme account with private key. CreateAccountWithPrivateKey(acct *Account) (*Account, error) // SignCertWithDNS sign certificate with dns-01 Challenge. SignCertWithDNS(sr *IdlSignReq, opts ...Option) (*CertInfo, error) }
Client is the acme client interface.
type Config ¶
Config configures a Client when creating.
type HTTPHeaderLink ¶
func GetHTTPHeaderLink ¶
func GetHTTPHeaderLink(ss []string) []HTTPHeaderLink
type IdlReqNewAccountPayload ¶
type IdlReqNewOrderPayload ¶
type IdlReqNewOrderPayload struct { Identifiers []IdlIdentifier NotBefore string `json:"NotBefore"` NotAfter string `json:"NotAfter"` }
type IdlRespDir ¶
type IdlRespDir struct { KeyChange string `json:"keyChange"` Meta struct { CaaIdentities []string `json:"caaIdentities"` TermsOfService string `json:"termsOfService"` Website string } NewAccount string `json:"newAccount"` NewNonce string `json:"newNonce"` NewOrder string `json:"newOrder"` RevokeCert string `json:"revokeCert"` }
type IdlRespDownLoadAuthorizationResources ¶
type IdlRespDownLoadAuthorizationResources struct { Status string Expires string Identifier IdlIdentifier Challenges []IdlChallenge }
type IdlRespFinalize ¶
type IdlRespNewAccount ¶
type IdlRespNewOrder ¶
type IdlSignReq ¶
type IdlSignReq struct { Identifiers []IdlIdentifier TXTCname string }
Click to show internal directories.
Click to hide internal directories.