Documentation ¶
Index ¶
- Constants
- func EcdsaTypeLives() []*dot.TypeLives
- func MakePriKey() (*ecdsa.PrivateKey, error)
- type Ecdsa
- func (c *Ecdsa) Certificate(pemFile string) (cert *x509.Certificate, err error)
- func (c *Ecdsa) GenerateCaCertKey(caPri *ecdsa.PrivateKey, keyFile string, pemFile string, dnsName []string, ...) (ca *x509.Certificate, err error)
- func (c *Ecdsa) GenerateCertKey(caParent *x509.Certificate, caPri *ecdsa.PrivateKey, keyFile string, ...) (err error)
- func (c *Ecdsa) PrivateKey(keyFile string) (pri *ecdsa.PrivateKey, err error)
- func (c *Ecdsa) PublicKey(pemFile string) (pubKey *ecdsa.PublicKey, err error)
Constants ¶
View Source
const (
//EcdsaTypeID type id of dot
EcdsaTypeID = "4b8b1751-4799-4578-af46-d9b339cf582f"
)
Variables ¶
This section is empty.
Functions ¶
func EcdsaTypeLives ¶ added in v0.2.0
EcdsaTypeLives return type lives
Types ¶
type Ecdsa ¶
type Ecdsa struct { }
Ecdsa dot
func (*Ecdsa) Certificate ¶
func (c *Ecdsa) Certificate(pemFile string) (cert *x509.Certificate, err error)
Certificate Read certificate from pemFile
func (*Ecdsa) GenerateCaCertKey ¶
func (c *Ecdsa) GenerateCaCertKey(caPri *ecdsa.PrivateKey, keyFile string, pemFile string, dnsName []string, orgName []string) (ca *x509.Certificate, err error)
GenerateCaCertKey Generate ca certificate and private key keyFile private key, pemFile ca certificate file
func (*Ecdsa) GenerateCertKey ¶
func (c *Ecdsa) GenerateCertKey(caParent *x509.Certificate, caPri *ecdsa.PrivateKey, keyFile string, pemFile string, dnsName []string, orgName []string) (err error)
GenerateCertKey Generate subcertificate and private key keyFile private file, pemFile subcertificate file
func (*Ecdsa) PrivateKey ¶
func (c *Ecdsa) PrivateKey(keyFile string) (pri *ecdsa.PrivateKey, err error)
PrivateKey Read private key from keyFile
Click to show internal directories.
Click to hide internal directories.