Golang crypto/x509/pkix.Extension type example

package crypto/x509/pkix

Extension represents the ASN.1 structure of the same name. See RFC 5280, section 4.2.

Golang crypto/x509/pkix.Extension type usage example

 // RevokedCertificate represents the ASN.1 structure of the same name. See RFC
 // 5280, section 5.1.
 type RevokedCertificate struct {
  SerialNumber *big.Int
  RevocationTime time.Time
  Extensions []Extension `asn1:"optional"`
 }

Reference :

http://golang.org/pkg/crypto/x509/pkix/#Extension

Advertisement