internal

package
v0.0.0-...-16a3ac4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileNames

func FileNames(args []string) (names []string, err error)

func ParsePEMCertificateBundle

func ParsePEMCertificateBundle(certBundleFileName string) (cert, issuer *x509.Certificate, err error)

ParsePEMCertificateBundle parses a PEM file containing the certificate chain (along with the private key, DH parameters, etc.) and return the first two certificates (the latter being expected to be for the issuer of the former).

func PrintOCSPResponse

func PrintOCSPResponse(certFileName string, resp *ocsp.Response)

func RevocationReasonString

func RevocationReasonString(revocationReason int) string

func RunHookCmd

func RunHookCmd(hookCmd string, resp []byte, stdout, stderr io.Writer) error

RunHookCmd runs the given command/executable, sending it a serialized ocsp response on the standard input.

Standard output and standard error are piped into the passed in writers.

The returned error is nil if the command runs, has no problems copying stdin, stdout, and stderr, and exits with a zero exit status

func ShouldIgnoreFileName

func ShouldIgnoreFileName(n string) bool

func StatusString

func StatusString(status int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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