ca

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: GPL-3.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CAVerify

func CAVerify(id string, photos []string, caUrl string) (string, error)

CAVerify user register

func GetUserCert

func GetUserCert(filename string) ([]byte, error)

getCert will read user.crt and return certificate string

func GetUserData

func GetUserData(filename string) []byte

func MakeWizard

func MakeWizard(filename string) *wizard

func Query

func Query(s string, queryUrl string) error

Query use idkey as param to query user ca information.

func UserAuthOperation

func UserAuthOperation(infofile string, photo []string, caUrl string) (string, error)

UserAuthOperation use userID and photo to register ca cert.

Types

type CARegResp

type CARegResp struct {
	Limit  int
	Offset int
	Order  string
	Status int

	Data caRegRespData
	// contains filtered or unexported fields
}

CARegResp indicates the response content when applying for a CA certificate.

Jump to

Keyboard shortcuts

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