keydb

package
v0.0.0-...-965d90e Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatCertSubject

func FormatCertSubject(name pkix.Name) []byte

FormatCertSubject converts the specified certificate name field into a string which can be presented to the user.

Types

type X509KeyDB

type X509KeyDB struct {
	// contains filtered or unexported fields
}

X509KeyDB retrieves X.509 certificates from a Cassandra database.

func NewX509KeyDB

func NewX509KeyDB(dbserver, keyspace string) (*X509KeyDB, error)

NewX509KeyDB connects to the X.509 key database given as "dbserver" and "keyspace".

func (*X509KeyDB) AddX509Certificate

func (db *X509KeyDB) AddX509Certificate(cert *x509.Certificate) error

AddX509Certificate adds all relevant data for the given X.509 certificate.

func (*X509KeyDB) ListCertificates

func (db *X509KeyDB) ListCertificates(start_index uint64, count int32) ([]*x509keyserver.X509KeyData, error)

ListCertificates lists the next "count" known certificates starting from "start_index".

func (*X509KeyDB) RetrieveCertificateByIndex

func (db *X509KeyDB) RetrieveCertificateByIndex(index uint64) (*x509.Certificate, error)

RetrieveCertificateByIndex retrieves the certificate with the given index number assigned by the issuer from the database.

Jump to

Keyboard shortcuts

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