testca

package
v0.0.0-...-7ab6552 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed cert.pem
	CertPEM []byte
	Cert    *x509.Certificate

	//go:embed cert-key.pem
	KeyPEM []byte
	Key    PrivateKey

	//go:embed cacert.pem
	CACertPEM []byte
	CACert    *x509.Certificate

	Certs    []*x509.Certificate
	CertPool *x509.CertPool

	//go:embed clientauth_admin.pem
	ClientAuthAdminCertPEM []byte
	ClientAuthAdminCert    *x509.Certificate
	ClientAuthAdminCerts   []*x509.Certificate

	//go:embed clientauth_admin-key.pem
	ClientAuthAdminKeyPEM []byte
	ClientAuthAdminKey    PrivateKey

	//go:embed clientauth_readonly.pem
	ClientAuthReadOnlyCertPEM []byte
	ClientAuthReadOnlyCert    *x509.Certificate
	ClientAuthReadOnlyCerts   []*x509.Certificate

	//go:embed clientauth_readonly-key.pem
	ClientAuthReadOnlyKeyPEM []byte
	ClientAuthReadOnlyKey    PrivateKey

	//go:embed clientauth_invalid.pem
	ClientAuthInvalidCertPEM []byte
	ClientAuthInvalidCert    *x509.Certificate

	//go:embed clientauth_invalid-key.pem
	ClientAuthInvalidKeyPEM []byte
	ClientAuthInvalidKey    PrivateKey

	//go:embed clientauth_cacert.pem
	ClientAuthCACertPEM []byte
	ClientAuthCACert    *x509.Certificate
)
View Source
var TLSHTTPClient *http.Client

Functions

This section is empty.

Types

type PrivateKey

type PrivateKey struct {
	DER    []byte
	Parsed crypto.PrivateKey
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL