Documentation ¶
Index ¶
- Variables
- func GetKey(eng *url.URL, file, newkey string) (crypto.PrivateKey, error)
- func LoadCert(pemBytes []byte) ([]*x509.Certificate, error)
- func LoadCertFromFile(f string) ([]*x509.Certificate, error)
- func LoadEngineKey(engine string, addr *url.URL) (crypto.PrivateKey, error)
- func LoadPrivateKey(pemBytes []byte) (crypto.PrivateKey, error)
- func NewCertRequest(subject map[string]string, dns []string) (*x509.CertificateRequest, error)
- func SavePrivateKey(key crypto.PrivateKey, file string) error
- func SupportedCurves() []string
- type CsrConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var CURVES = map[string]elliptic.Curve{}
View Source
var EMPTY = []string{}
Functions ¶
func GetKey ¶
GetKey will attempt to load an engine key from `eng` if provided. If `eng` is `nil`, `file` and `newkey` will be evaluated. `file` will be loaded; if the file does not exist a new key according to `newkey` will be created. If it does exist, its key type (RSA bit size, EC curve) will be compared to `newkey`. If the desired type does not match the loaded type an error will be returned.
func LoadCertFromFile ¶
func LoadCertFromFile(f string) ([]*x509.Certificate, error)
func LoadEngineKey ¶
func LoadPrivateKey ¶
func LoadPrivateKey(pemBytes []byte) (crypto.PrivateKey, error)
func NewCertRequest ¶
func SavePrivateKey ¶
func SavePrivateKey(key crypto.PrivateKey, file string) error
func SupportedCurves ¶
func SupportedCurves() []string
Types ¶
Click to show internal directories.
Click to hide internal directories.