From a6c74b60095fdf2d7955b999baaf770d22b21abf Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Thu, 12 Sep 2019 11:36:04 -0700 Subject: [PATCH] Add MarshalRDNSequence --- x509.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x509.go b/x509.go index 5089ab5..6621e65 100644 --- a/x509.go +++ b/x509.go @@ -83,6 +83,10 @@ func ParseRDNSequence(rdnsBytes []byte) (RDNSequence, error) { return rdns, nil } +func MarshalRDNSequence(rdns RDNSequence) ([]byte, error) { + return asn1.Marshal(rdns) +} + type TBSCertificate struct { Raw asn1.RawContent