Documentation ¶
Index ¶
- func Expired(t time.Duration) tmplOption
- func ExtKeyUsage(usgs ...x509.ExtKeyUsage) tmplOption
- func GenerateEcdsaCert(tmpl x509.Certificate) ([]byte, []byte, error)
- func GenerateEcdsaCertWithParent(tmpl x509.Certificate, parentCert *x509.Certificate, parentPriv any) ([]byte, []byte, error)
- func Hosts(hosts ...string) tmplOption
- func IsCa(b bool) tmplOption
- func KeyUsage(usg x509.KeyUsage) tmplOption
- func NotBefore(t time.Duration) tmplOption
- func ParseCertPair(certParame, keyParame interface{}) (*x509.Certificate, crypto.PrivateKey, error)
- func ParsePrivateCert(cert interface{}) (crypto.PrivateKey, error)
- func ParsePublicCert(cert interface{}) ([][]byte, *x509.Certificate, error)
- func ParseTlsConfig(caParame interface{}, certParame interface{}, keyParame interface{}) (*tls.Config, error)
- func PkixName(name pkix.Name) tmplOption
- func Template(opts ...tmplOption) x509.Certificate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtKeyUsage ¶
func ExtKeyUsage(usgs ...x509.ExtKeyUsage) tmplOption
func GenerateEcdsaCert ¶ added in v1.0.2
func GenerateEcdsaCert(tmpl x509.Certificate) ([]byte, []byte, error)
func GenerateEcdsaCertWithParent ¶ added in v1.0.2
func GenerateEcdsaCertWithParent(tmpl x509.Certificate, parentCert *x509.Certificate, parentPriv any) ([]byte, []byte, error)
func ParseCertPair ¶ added in v1.0.3
func ParseCertPair(certParame, keyParame interface{}) (*x509.Certificate, crypto.PrivateKey, error)
func ParsePrivateCert ¶ added in v1.0.3
func ParsePrivateCert(cert interface{}) (crypto.PrivateKey, error)
Private Key
ReadPrivateCert []byte string *rsa.PrivateKey, *ecdsa.PrivateKey, ed25519.PrivateKey
func ParsePublicCert ¶ added in v1.0.3
func ParsePublicCert(cert interface{}) ([][]byte, *x509.Certificate, error)
Public Key
ParsePublicCert []byte string *x509.Certificate
func ParseTlsConfig ¶ added in v1.0.4
func Template ¶
func Template(opts ...tmplOption) x509.Certificate
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.