Skip to content

Commit

Permalink
MarshalCertificateRequestDer
Browse files Browse the repository at this point in the history
  • Loading branch information
yzp0n committed Oct 12, 2020
1 parent 6fae3c7 commit a912393
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pemparser/marshaller.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,10 @@ func MarshalCertificateDer(certDer []byte) []byte {
Bytes: certDer,
})
}

func MarshalCertificateRequestDer(der []byte) []byte {
return pem.EncodeToMemory(&pem.Block{
Type: CertificateRequestPemType,
Bytes: der,
})
}

0 comments on commit a912393

Please sign in to comment.