handler

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCertificateHandler

func AddCertificateHandler(w http.ResponseWriter, r *http.Request)

AddCertificateHandler allows to add a new certificate + private key via UI

func AddCertificateWithCSRHandler

func AddCertificateWithCSRHandler(w http.ResponseWriter, r *http.Request)

AddCertificateWithCSRHandler enables you to upload a file containing a CSR to the UI and create a certificate

func AdminSettingsHandler

func AdminSettingsHandler(w http.ResponseWriter, r *http.Request)

AdminSettingsHandler takes care of checking and write system-wide settings to the database

func AdminUserAddHandler

func AdminUserAddHandler(w http.ResponseWriter, r *http.Request)

AdminUserAddHandler takes form values and creates a new user account

func AdminUserEditHandler

func AdminUserEditHandler(w http.ResponseWriter, r *http.Request)

AdminUserEditHandler allows changing values for a given user account

func AdminUserListHandler

func AdminUserListHandler(w http.ResponseWriter, r *http.Request)

AdminUserListHandler lists all existing user

func AdminUserRemoveHandler

func AdminUserRemoveHandler(w http.ResponseWriter, r *http.Request)

AdminUserRemoveHandler allows removing a given user account

func ApiObtainCertificateHandler

func ApiObtainCertificateHandler(w http.ResponseWriter, r *http.Request)

ApiObtainCertificateHandler allows to actually download a certificate

func ApiObtainPrivateKeyHandler

func ApiObtainPrivateKeyHandler(w http.ResponseWriter, r *http.Request)

ApiObtainPrivateKeyHandler allows to actually download a private key

func ApiOcspRequestHandler

func ApiOcspRequestHandler(w http.ResponseWriter, r *http.Request)

ApiOcspRequestHandler responds to OCSP requests with whether the certificate in question is revoked or not

func ApiRequestCertificateHandler

func ApiRequestCertificateHandler(w http.ResponseWriter, r *http.Request)

ApiRequestCertificateHandler handles a client's request for a new certificate, generates a new certificate and private key for the client and sets appropriate location headers

func IndexHandler

func IndexHandler(w http.ResponseWriter, r *http.Request)

IndexHandler shows, well, the index page

func ListCertificateHandler

func ListCertificateHandler(w http.ResponseWriter, r *http.Request)

ListCertificateHandler lists all available certificates and private keys in the UI

func LoginHandler

func LoginHandler(w http.ResponseWriter, r *http.Request)

LoginHandler authenticates the user against the database, created a session and associates it with the user

func LogoutHandler

func LogoutHandler(w http.ResponseWriter, r *http.Request)

LogoutHandler makes sure the user session is invalidated and the session cookie is removed

func RegistrationHandler

func RegistrationHandler(w http.ResponseWriter, r *http.Request)

RegistrationHandler handles form values, check for validity, adds the new user account and optionally sends out a confirmation email

func RevokeCertificateHandler

func RevokeCertificateHandler(w http.ResponseWriter, r *http.Request)

RevokeCertificateHandler allows the revocation of a certificate via the UI

Types

This section is empty.

Jump to

Keyboard shortcuts

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