pki

package
v5.4.40 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

README

Contents

This folder contains some basic certificates that can be used to test the Nuts node

  • a truststore with a single CA: truststore.pem
  • a valid certificate with a key: certificate-an-key.pem
  • an invalid certificate: invalid-cert.pem

Expired certificate(s)?

Regenerate using

sh generate.sh

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CertificateData []byte

CertificateData contains the PEM-encoded test certificate and its key.

View Source
var InvalidCertificateData []byte

InvalidCertificateData contains the PEM-encoded invalid test certificate and its key.

View Source
var TruststoreData []byte

TruststoreData contains the PEM-encoded test truststore.

Functions

func Certificate

func Certificate() tls.Certificate

Certificate returns a valid test certificate.

func CertificateFile

func CertificateFile(t *testing.T) string

CertificateFile returns the path to a file containing a valid test certificate and its key.

func InvalidCertificate

func InvalidCertificate() tls.Certificate

InvalidCertificate returns an invalid test certificate.

func InvalidCertificateFile

func InvalidCertificateFile(t *testing.T) string

InvalidCertificateFile returns the path to a file containing an invalid test certificate and its key.

func Truststore

func Truststore() *x509.CertPool

Truststore returns a test truststore.

func TruststoreFile

func TruststoreFile(t *testing.T) string

TruststoreFile returns the path to a file containing a test truststore.

Types

This section is empty.

Jump to

Keyboard shortcuts

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