digicerttest

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChainBundle added in v0.0.3

func NewChainBundle(chain_length int) (*digicert.PEMBundle, error)

func NewOrganizationContact

func NewOrganizationContact() *digicert.Contact

func NewTechnicalContact

func NewTechnicalContact() *digicert.Contact

func NewTestCertificate

func NewTestCertificate(common_name string) (*digicert.Certificate, error)

Types

type Contact

type Contact struct {
	UserID             int    `json:"user_id,omitempty"`
	ContactType        string `json:"contact_type,omitempty"`
	FirstName          string `json:"first_name,omitempty"`
	LastName           string `json:"last_name,omitempty"`
	Email              string `json:"email,omitempty"`
	JobTitle           string `json:"job_title,omitempty"`
	Telephone          string `json:"telephone,omitempty"`
	TelephoneExtension string `json:"telephone_extension,omitempty"`
}

type Server

type Server struct {
	Mux         *http.ServeMux
	HTTPServer  *httptest.Server
	DataStore   map[string]interface{}
	BaseURLPath string
}

func NewTestServer

func NewTestServer(base_url_path string) *Server

func (*Server) APIUrl

func (srv *Server) APIUrl() string

func (*Server) Close

func (srv *Server) Close()

Jump to

Keyboard shortcuts

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