是否有用于解封ASN.1格式的TLS证书的接口

I'm parsing TLS records, taken from a PCAP file.

I have the bytes of a TLS certificate in ASN.1 format (in a []byte).

I want to unmarshall this byte slice into a useful structure (avoiding having to manually parse ASN.1).

I can't seem to find an interface for a TLS certificate that follows the RFC in either encoding/asn1 nor crypto/tls.

Has this been created somewhere I can't find or do I need to write my own?

The struct is in the x509 package