aboutsummaryrefslogtreecommitdiff
path: root/certificate.go
diff options
context:
space:
mode:
Diffstat (limited to 'certificate.go')
-rw-r--r--certificate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/certificate.go b/certificate.go
index b8849d2..3adb530 100644
--- a/certificate.go
+++ b/certificate.go
@@ -151,7 +151,7 @@ func LoadCertificate(raw []byte) (*Certificate, error) {
}
// marshal the certificate to a pem block
-func (c *Certificate) MarshalPem() (marshalledPemBlock, error) {
+func (c *Certificate) MarshalPem() (io.WriterTo, error) {
block := &pem.Block{Type: PemLabelCertificate, Bytes: c.Raw}
return marshalledPemBlock(pem.EncodeToMemory(block)), nil
}