Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertificateRequestShortText ¶
func CertificateRequestShortText(cr *x509.CertificateRequest) (string, error)
CertificateRequestShortText returns the human-readable string representation of the given certificate request using a short and friendly format.
func CertificateRequestText ¶
func CertificateRequestText(csr *x509.CertificateRequest) (string, error)
CertificateRequestText returns a human-readable string representation of the certificate request csr. The format is similar (but not identical) to the OpenSSL way of printing certificates.
func CertificateShortText ¶
func CertificateShortText(cert *x509.Certificate) (string, error)
func toBase64(b []byte) string { return base64.StdEncoding.EncodeToString(b) }
func printSCTSignature(sig ct.DigitallySigned, buf *bytes.Buffer) { buf.WriteString(fmt.Sprintf("%20sSignature Algorithm: %s-%s", "", sig.Algorithm.Hash, sig.Algorithm.Signature)) for i, val := range sig.Signature { if (i % 18) == 0 { buf.WriteString(fmt.Sprintf("\n%22s", "")) } buf.WriteString(fmt.Sprintf("%02x", val)) if i != len(sig.Signature)-1 { buf.WriteString(":") } } buf.WriteString("\n") }
CertificateShortText returns the human-readable string representation of the given cert using a short and friendly format.
func CertificateText ¶
func CertificateText(cert *x509.Certificate) (string, error)
CertificateText returns a human-readable string representation of the certificate cert. The format is similar (but not identical) to the OpenSSL way of printing certificates.
Types ¶
This section is empty.