keyring

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCertificate

func GetCertificate(serial KeySerial) ([]byte, error)

GetCertificate returns the X.509 certificate for the given serial number. As of today, this will probably not work as we need to think about how to delegate kernel asymmetric keys to user space.

func GetPrivateKey

func GetPrivateKey(serial KeySerial) ([]byte, error)

GetPrivateKey returns the private key for the given serial number. As of today, this will probably not work as we need to think about how to delegate kernel asymmetric keys to user space.

Types

type KeySerial

type KeySerial int32

KeySerial is a unique identifier for a key in the kernel keyring.

func CreateCertificate

func CreateCertificate(cert *x509.Certificate, peerName string) (KeySerial, error)

CreateCertificate creates a key containing the peer's certificate.

Jump to

Keyboard shortcuts

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