Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checker ¶
type Checker struct { CA *x509.Certificate Key *rsa.PrivateKey // contains filtered or unexported fields }
func NewChecker ¶
func (*Checker) PerformCheck ¶
func (ch *Checker) PerformCheck(w http.ResponseWriter, req *http.Request)
PerformCheck conducts a background check being passed in from the frontend. It expects a CSR as the request body being passed in, with fields matching the specified requirements and formats to perform the check.
On successful check it returns a 200 status code and a signed certificate. On a failed check, it will return a 403 (forbidden) status code.
Click to show internal directories.
Click to hide internal directories.