ownercertificate

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ownercertificate provides helper functions for generating, parsing and verifying owner certs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCMS

func GenerateCMS(cert *x509.Certificate, priv crypto.PrivateKey) ([]byte, error)

GenerateCMS takes an Ownership Certificate keypair and converts it to a CMS structure. The CMS structure contains the Ownership Certificate in its list of certificates.

func Verify

func Verify(in []byte, certPool *x509.CertPool) (*x509.Certificate, error)

Verify checks that the provided CMS value is signed by a signer in the provided certPool and returns the Ownership Certificate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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