Documentation ¶
Index ¶
- func FileNames(args []string) (names []string, err error)
- func ParsePEMCertificateBundle(certBundleFileName string) (cert, issuer *x509.Certificate, err error)
- func PrintOCSPResponse(certFileName string, resp *ocsp.Response)
- func RevocationReasonString(revocationReason int) string
- func RunHookCmd(hookCmd string, resp []byte, stdout, stderr io.Writer) error
- func ShouldIgnoreFileName(n string) bool
- func StatusString(status int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 RevocationReasonString ¶
func RunHookCmd ¶
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 StatusString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.