Versions in this module Expand all Collapse all v0 v0.1.2 Oct 11, 2020 Changes in this version + const DFNTimestampFormat + const IP + const MicrosoftGUID + const MicrosoftUPN + const SANDNS + const SANEmail + const URI + var DFNCertificateList = []string + var DFNCertificatePool *x509.CertPool + var DFNPublicRoles = make(map[string]DFNRole) + var EpochZero = time.Unix(0, 0) + var ErrNoTrustChain = errors.New("Unable to find a trust chain") + var ErrorNoPEMBlockFound = errors.New("No PEM block found in keybytes") + var GenerateDomains = endpointURLFactory(endpointTemplateDomains) + var GeneratePublicURL = endpointURLFactory(endpointTemplatePublic) + var GenerateRegistration = endpointURLFactory(endpointTemplateRegistration) + var RolesMachines = []string + var RolesUser = []string + var TemplateGetCAInfoData = template.Must(template.New("getCAInfoData").Parse(getCAInfoDataTemplate)) + var TemplateGetCertificateByRequestSerial = template.Must(...) + var TemplateGetRequestPrintout = template.Must(template.New("getRequestPrintout").Parse(getRequestPrintoutTemplate)) + var TemplateListExtendedDomains = template.Must(template.New("listExtendedDomains").Parse(listExtendedDomainsTemplate)) + var TemplateNewRequest = template.Must(template.New("newRequest").Parse(newRequestTemplate)) + var TemplateSendChallengeEMailData = template.Must(template.New("sendChallengeEMail").Parse(sendChallengeEMailTemplate)) + func GenerateRequest(pkey *rsa.PrivateKey, request *x509.CertificateRequest) (string, error) + func GetAuthHTTPClient(keyBytes, certBytes, chainBytes []byte) (*http.Client, error) + func GetAuthHTTPClientFromFiles(keyfile, certfile, chainfile string) (*http.Client, error) + func GetCertificateByRequestSerial(client SoapClient, data GetCertificateByRequestSerialData) (string, error) + func GetChainForCertificate(cert *x509.Certificate) ([]*x509.Certificate, error) + func GetPublicHTTPClient() (*http.Client, error) + func GetRequestPrintout(client SoapClient, raid int, serial string, pin string) ([]byte, error) + func NewPrivateKey(bits int) (*rsa.PrivateKey, error) + func NewRequest(client SoapClient, csr string, data NewRequestData) (string, error) + func PINtoHash(pin string) string + func ParsePrivateKey(keybytes, password []byte) (*rsa.PrivateKey, error) + func RandomPIN() string + func SAN(kind int, value string) string + type CAInfo struct + CAChain []string + DNPrefixes []string + Roles []string + func GetCAInfoData(client SoapClient, raid int) (CAInfo, error) + type DFNRole string + type DomainFilter func(DomainInformation) bool + type DomainInformation struct + Approved bool + ApprovedDate time.Time + BRVersion string + ChallengeMailAddress string + LastChallengeMailSent time.Time + Method string + Name string + Secret bool + Type string + ValidUntil time.Time + func (domainInformation DomainInformation) Filter(filter DomainFilter) bool + type ExtendedDomains struct + Change string + Domains []DomainInformation + func ListExtendedDomains(client SoapClient, raid int) (extendedDomains ExtendedDomains, err error) + type GetCertificateByRequestSerialData struct + PIN string + RaId int + Serial int + type NewRequestData struct + AddEMail string + AddName string + AddOrgUnit string + AltNames []string + PIN string + Pkcs10 string + Publish bool + RaId int + Role DFNRole + type SendChallengeEMailData struct + Change string + Name string + RaId int + Type string + type SendChallengeEMailReturn struct + Change string + LastChallengeMailSent time.Time + func SendChallengeEMail(client SoapClient, raid int, name string, Type string, change string) (response SendChallengeEMailReturn, err error) + type SoapClient struct + Client *http.Client + SoapURL string + func NewSoapClient(client *http.Client, baseurl string) SoapClient + func (sc *SoapClient) Request(tmpl *template.Template, data interface{}) ([]byte, mxj.Map, error)