wincertstore

package module
v0.0.0-...-1f24696 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

README

wincertstore

Programmatic access to the Windows Certificate Store.

Documentation

Index

Constants

View Source
const (
	// CA is the name of the system store that contains
	// intermediate certificates.
	CA = "CA"
	// My is the name of the system store that contains per-user
	// private keys.
	//
	// For TLS servers and client certs.
	My = "MY"
	// Root is the name of the system store that contains root
	// certificates.
	Root = "ROOT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is a certificate store.

func OpenStore

func OpenStore() (*Store, error)

OpenStore creates an in-memory certificate store.

func OpenSystemStore

func OpenSystemStore(name string) (*Store, error)

OpenSystemStore opens the named system certificate store.

func (*Store) AppendCertsFromPEM

func (s *Store) AppendCertsFromPEM(data []byte) error

AppendCertsFromPEM appends the PEM-encoded certificates to the store and reports whether at least one certificate was added.

func (*Store) Close

func (s *Store) Close() error

func (*Store) RemoveCertsFromPEM

func (s *Store) RemoveCertsFromPEM(data []byte) error

RemoveCertsFromPEM removes the PEM-encoded certificates from the store.

Jump to

Keyboard shortcuts

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