Documentation ¶
Index ¶
- Constants
- func AddCertificate(oper *protos.Identity, certDer []byte) error
- func CollectGarbage() error
- func FindCertificates(id *protos.Identity) ([]string, error)
- func GetAll() (map[string]*certifierprotos.CertificateInfo, error)
- func GetCACert(getCAReq *certifierprotos.GetCARequest) (*protos.CACert, error)
- func GetCertificateIdentity(serialNum string) (*certifierprotos.CertificateInfo, error)
- func GetIdentity(sn *protos.Certificate_SN) (*certifierprotos.CertificateInfo, error)
- func GetVerifiedCertificateIdentity(serialNum string) (*protos.Identity, error)
- func ListCertificates() ([]string, error)
- func RevokeCertificate(sn *protos.Certificate_SN) error
- func RevokeCertificateSN(sn string) error
- func SignCSR(csr *protos.CSR) (*protos.Certificate, error)
- func VerifyDateRange(certInfo CertDateRange) error
- type CertDateRange
Constants ¶
const ServiceName = "CERTIFIER"
Variables ¶
This section is empty.
Functions ¶
func AddCertificate ¶
Add an existing Certificate & associate it with operator
func FindCertificates ¶
Finds & returns Serial Numbers of all Certificates associated with the given Identity
func GetAll ¶
func GetAll() (map[string]*certifierprotos.CertificateInfo, error)
GetAll returns all Certificates Records
func GetCACert ¶
func GetCACert(getCAReq *certifierprotos.GetCARequest) (*protos.CACert, error)
Get the certificate for the requested CA
func GetCertificateIdentity ¶
func GetCertificateIdentity(serialNum string) (*certifierprotos.CertificateInfo, error)
GetCertificateIdentity returns CertificateInfo of Certificate with the given Serial Number String. It's a simple wrapper for GetIdentity
func GetIdentity ¶
func GetIdentity(sn *protos.Certificate_SN) (*certifierprotos.CertificateInfo, error)
Get the CertificateInfo {Identity, NotAfter} of an SN
func GetVerifiedCertificateIdentity ¶
GetVerifiedCertificateIdentity returns CertificateInfo of Certificate with the given Serial Number String and verifies its validity
func ListCertificates ¶
Returns serial numbers of all registered certificates
func RevokeCertificate ¶
func RevokeCertificate(sn *protos.Certificate_SN) error
Revoke Certificate and delete record of given SN
func RevokeCertificateSN ¶
func SignCSR ¶
func SignCSR(csr *protos.CSR) (*protos.Certificate, error)
Return a signed certificate given CSR
func VerifyDateRange ¶
func VerifyDateRange(certInfo CertDateRange) error
Check if certificate time is not expired/not active yet