Versions in this module Expand all Collapse all v6 v6.2.0 May 31, 2024 v6.1.0 May 4, 2024 Changes in this version + func CertFingerprint(cert *x509.Certificate) string + func CertFingerprintStr(c string) (string, error) + func CertificateTokenDecode(input string) (*api.CertificateAddToken, error) + func FindOrGenCert(certf string, keyf string, certtype bool, addHosts bool) error + func GenCert(certf string, keyf string, certtype bool, addHosts bool) error + func GenerateMemCert(client bool, addHosts bool) ([]byte, []byte, error) + func GenerateTrustCertificate(cert *CertInfo, name string) (*api.Certificate, error) + func GetRemoteCertificate(address string, useragent string) (*x509.Certificate, error) + func GetTLSConfig(tlsRemoteCert *x509.Certificate) (*tls.Config, error) + func GetTLSConfigMem(tlsClientCert string, tlsClientKey string, tlsClientCA string, ...) (*tls.Config, error) + func InitTLSConfig() *tls.Config + func IsConnectionError(err error) bool + func RFC3493Dialer(context context.Context, network string, address string) (net.Conn, error) + func ReadCert(fpath string) (*x509.Certificate, error) + type CertInfo struct + func KeyPairAndCA(dir, prefix string, kind CertKind, addHosts bool) (*CertInfo, error) + func KeyPairFromRaw(certificate []byte, key []byte) (*CertInfo, error) + func TestingAltKeyPair() *CertInfo + func TestingKeyPair() *CertInfo + func (c *CertInfo) CA() *x509.Certificate + func (c *CertInfo) CRL() *x509.RevocationList + func (c *CertInfo) Fingerprint() string + func (c *CertInfo) KeyPair() tls.Certificate + func (c *CertInfo) PrivateKey() []byte + func (c *CertInfo) PublicKey() []byte + func (c *CertInfo) PublicKeyX509() (*x509.Certificate, error) + type CertKind int + const CertClient + const CertServer Other modules containing this package github.com/lxc/incus