duan3601 2019-04-05 20:11
浏览 79
已采纳

是否有用于解封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?

  • 写回答

1条回答 默认 最新

  • dongwu4834 2019-04-05 20:42
    关注

    The struct is in the x509 package

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?