Documentation ¶
Index ¶
- func PEMToP12(certData, keyData []byte, keyPassword, p12Password string) (p12Data []byte, err error)
- type CA
- type CallbackFunc
- type CertOption
- func CRLDistributionPoints(v ...string) CertOption
- func CommonName(cn string) CertOption
- func Country(v ...string) CertOption
- func DNSNames(dnsNames ...string) CertOption
- func EmailAddresses(emails ...string) CertOption
- func IPAddresses(ipAddresses ...string) CertOption
- func IssuingCertificateURL(v ...string) CertOption
- func Locality(v ...string) CertOption
- func NotAfter(t time.Time) CertOption
- func NotBefore(t time.Time) CertOption
- func Organization(v ...string) CertOption
- func OrganizationalUnit(v ...string) CertOption
- func Province(v ...string) CertOption
- func SerialNumber(sn int64) CertOption
- func SignatureAlgorithm(alog x509.SignatureAlgorithm) CertOption
- type CertTemplater
- type P12Gen
- func (p *P12Gen) CreateCertificate(caName, caPassword string, certTemplate *x509.Certificate) (p12Data []byte, p12Pwd string, err error)
- func (p *P12Gen) CreateCertificateAsync(caName, caPassword string, certTemplate *x509.Certificate, ...)
- func (p *P12Gen) LoadCA(name string, certData, keyData []byte) (err error)
- func (p *P12Gen) WithPwdGenerator(fn PasswordGenerateFunc)
- type PasswordGenerateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallbackFunc ¶
type CertOption ¶
type CertOption func(cert *x509.Certificate) (err error)
func CRLDistributionPoints ¶
func CRLDistributionPoints(v ...string) CertOption
func CommonName ¶
func CommonName(cn string) CertOption
func Country ¶
func Country(v ...string) CertOption
func DNSNames ¶
func DNSNames(dnsNames ...string) CertOption
func EmailAddresses ¶
func EmailAddresses(emails ...string) CertOption
func IPAddresses ¶
func IPAddresses(ipAddresses ...string) CertOption
func IssuingCertificateURL ¶
func IssuingCertificateURL(v ...string) CertOption
func Locality ¶
func Locality(v ...string) CertOption
func NotAfter ¶
func NotAfter(t time.Time) CertOption
func NotBefore ¶
func NotBefore(t time.Time) CertOption
func Organization ¶
func Organization(v ...string) CertOption
func OrganizationalUnit ¶
func OrganizationalUnit(v ...string) CertOption
func Province ¶
func Province(v ...string) CertOption
func SerialNumber ¶
func SerialNumber(sn int64) CertOption
func SignatureAlgorithm ¶
func SignatureAlgorithm(alog x509.SignatureAlgorithm) CertOption
type CertTemplater ¶
type CertTemplater interface {
Generate(opts ...CertOption) (certTemplate *x509.Certificate, err error)
}
type P12Gen ¶
type P12Gen struct {
// contains filtered or unexported fields
}
func (*P12Gen) CreateCertificate ¶
func (*P12Gen) CreateCertificateAsync ¶
func (p *P12Gen) CreateCertificateAsync(caName, caPassword string, certTemplate *x509.Certificate, callbacks ...CallbackFunc)
func (*P12Gen) WithPwdGenerator ¶
func (p *P12Gen) WithPwdGenerator(fn PasswordGenerateFunc)
type PasswordGenerateFunc ¶
type PasswordGenerateFunc func() string
Directories ¶
Path | Synopsis |
---|---|
Package pkcs12 implements some of PKCS#12.
|
Package pkcs12 implements some of PKCS#12. |
internal/rc2
Package rc2 implements the RC2 cipher https://www.ietf.org/rfc/rfc2268.txt http://people.csail.mit.edu/rivest/pubs/KRRR98.pdf This code is licensed under the MIT license.
|
Package rc2 implements the RC2 cipher https://www.ietf.org/rfc/rfc2268.txt http://people.csail.mit.edu/rivest/pubs/KRRR98.pdf This code is licensed under the MIT license. |
Click to show internal directories.
Click to hide internal directories.