(w io.Writer, cert *x509.Certificate)
| 39 | ) |
| 40 | |
| 41 | func EncodeCertificate(w io.Writer, cert *x509.Certificate) error { |
| 42 | return pem.Encode(w, &pem.Block{Type: "CERTIFICATE", Bytes: cert.Raw}) |
| 43 | } |
| 44 | |
| 45 | func EncodeKey(w io.Writer, priv *rsa.PrivateKey) error { |
| 46 | b, err := x509.MarshalPKCS8PrivateKey(priv) |
no test coverage detected
searching dependent graphs…