mirror of
https://github.com/hanzoai/pki.git
synced 2026-11-03 18:08:14 +00:00
2.7 KiB
2.7 KiB
import "github.com/effective-security/xpki/x/print"
Package print writes human-readable descriptions of certificates, certificate requests, CRLs and OCSP responses to an io.Writer, and a JSON helper for CLI output. Timestamps are printed in local time; write errors are ignored by design because the output is for humans.
Index
- func CertAndKey(w io.Writer, key, csrBytes, cert []byte)
- func Certificate(w io.Writer, crt *x509.Certificate, verboseExtensions bool)
- func CertificateList(w io.Writer, crl *x509.RevocationList)
- func CertificateRequest(w io.Writer, crt *x509.CertificateRequest)
- func Certificates(w io.Writer, list []*x509.Certificate, verboseExtensions bool)
- func JSON(w io.Writer, v any)
- func OCSPResponse(w io.Writer, res *ocsp.Response, verboseExtensions bool)
func CertAndKey
func CertAndKey(w io.Writer, key, csrBytes, cert []byte)
CertAndKey outputs a cert, key and csr
func Certificate
func Certificate(w io.Writer, crt *x509.Certificate, verboseExtensions bool)
Certificate prints cert details
func CertificateList
func CertificateList(w io.Writer, crl *x509.RevocationList)
CertificateList prints CRL details
func CertificateRequest
func CertificateRequest(w io.Writer, crt *x509.CertificateRequest)
CertificateRequest prints cert request details
func Certificates
func Certificates(w io.Writer, list []*x509.Certificate, verboseExtensions bool)
Certificates prints list of cert details
func JSON
func JSON(w io.Writer, v any)
JSON prints json
func OCSPResponse
func OCSPResponse(w io.Writer, res *ocsp.Response, verboseExtensions bool)
OCSPResponse prints OCSP response details
Generated by gomarkdoc