package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Oct 8, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package pkitest makes a throwaway certificate authority for tests.
type PKI struct {
CAFile string
}
PKI is a CA that signs the certificates of a test.
New creates a CA in the temporary directory of the test.
Client issues a client certificate.
Server issues a certificate for 127.0.0.1 and localhost, valid for a day.
ServerFor is Server with the time the certificate stays valid.
type Pair struct{ CertFile, KeyFile string }
Pair is a certificate and its key, as files.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.