package x509util
import "github.com/spiffe/go-spiffe/v2/internal/x509util"
Index ¶
- func CertsEqual(a, b []*x509.Certificate) bool
- func ConcatRawCertsFromCerts(certs []*x509.Certificate) []byte
- func CopyX509Authorities(x509Authorities []*x509.Certificate) []*x509.Certificate
- func NewCertPool(certs []*x509.Certificate) *x509.CertPool
- func RawCertsFromCerts(certs []*x509.Certificate) [][]byte
Functions ¶
func CertsEqual ¶
func CertsEqual(a, b []*x509.Certificate) bool
CertsEqual returns true if the slices of X.509 certificates are equal.
func ConcatRawCertsFromCerts ¶
func ConcatRawCertsFromCerts(certs []*x509.Certificate) []byte
func CopyX509Authorities ¶
func CopyX509Authorities(x509Authorities []*x509.Certificate) []*x509.Certificate
CopyX509Authorities copies a slice of X.509 certificates to a new slice.
func NewCertPool ¶
func NewCertPool(certs []*x509.Certificate) *x509.CertPool
NewCertPool returns a new CertPool with the given X.509 certificates
func RawCertsFromCerts ¶
func RawCertsFromCerts(certs []*x509.Certificate) [][]byte
Source Files ¶
- Version
- v2.5.0 (latest)
- Published
- Jan 31, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 2 months ago –
Tools for package owners.