openssl

package
v0.0.0-...-8a9afe1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: MIT, MIT Imports: 9 Imported by: 0

README

go-openssl

A go library to issue/sign/manage ssl certificates using openssl

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CA

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

func (*CA) GetCRLPath

func (ca *CA) GetCRLPath() string

func (*CA) GetFilePath

func (ca *CA) GetFilePath() string

func (*CA) Revoke

func (ca *CA) Revoke(cert *Cert) error

func (*CA) Sign

func (ca *CA) Sign(request *CSR) (*Cert, error)

func (*CA) String

func (ca *CA) String() string

type CSR

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

func (*CSR) KeyString

func (csr *CSR) KeyString() string

func (*CSR) Save

func (csr *CSR) Save(filename string) error

func (*CSR) SaveKey

func (csr *CSR) SaveKey(filename string) error

func (*CSR) String

func (csr *CSR) String() string

type Cert

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

func (*Cert) GetFilePath

func (c *Cert) GetFilePath() string

func (*Cert) GetKeyPath

func (c *Cert) GetKeyPath() string

func (*Cert) KeyString

func (c *Cert) KeyString() string

func (*Cert) String

func (c *Cert) String() string

type DH

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

func (*DH) GetFilePath

func (dh *DH) GetFilePath() string

func (*DH) String

func (dh *DH) String() string

type Openssl

type Openssl struct {
	Path string

	Country      string
	Province     string
	City         string
	Organization string
	CommonName   string
	Email        string
	// contains filtered or unexported fields
}

func (*Openssl) AppendPath

func (o *Openssl) AppendPath(filename string) string

func (*Openssl) CreateCA

func (o *Openssl) CreateCA(filename string, keyfile string) (*CA, error)

func (*Openssl) CreateCSR

func (o *Openssl) CreateCSR(cn string, server bool) (*CSR, error)

func (*Openssl) CreateCert

func (o *Openssl) CreateCert(filename, keyfile, cn string, ca *CA, server bool) (*Cert, error)

func (*Openssl) CreateDH

func (o *Openssl) CreateDH(filename string, size int) (*DH, error)

func (*Openssl) CreateTA

func (o *Openssl) CreateTA(filename string) (*TA, error)

func (*Openssl) GetConfigFile

func (o *Openssl) GetConfigFile() string

func (*Openssl) Init

func (o *Openssl) Init()

func (*Openssl) LoadCA

func (o *Openssl) LoadCA(filename string, keyfile string) (*CA, error)

func (*Openssl) LoadCSR

func (o *Openssl) LoadCSR(filename, keyfile string) (*CSR, error)

func (*Openssl) LoadCert

func (o *Openssl) LoadCert(filename, keyfile string) (*Cert, error)

func (*Openssl) LoadDH

func (o *Openssl) LoadDH(filename string) (*DH, error)

func (*Openssl) LoadOrCreateCA

func (o *Openssl) LoadOrCreateCA(filename string, keyfile string) (*CA, error)

func (*Openssl) LoadOrCreateCert

func (o *Openssl) LoadOrCreateCert(filename, keyfile, cn string, ca *CA, server bool) (*Cert, error)

func (*Openssl) LoadOrCreateDH

func (o *Openssl) LoadOrCreateDH(filename string, size int) (*DH, error)

func (*Openssl) LoadOrCreateTA

func (o *Openssl) LoadOrCreateTA(filename string) (*TA, error)

func (*Openssl) LoadTA

func (o *Openssl) LoadTA(filename string) (*TA, error)

func (*Openssl) WriteConfigFile

func (o *Openssl) WriteConfigFile(filename string)

type TA

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

func (*TA) GetFilePath

func (ta *TA) GetFilePath() string

func (*TA) String

func (ta *TA) String() string

Jump to

Keyboard shortcuts

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