Golang crypto/x509/pkix.RevokedCertificate example
package crypto/x509/pkix
RevokedCertificate represents the ASN.1 structure of the same name. See RFC 5280, section 5.1.
Golang crypto/x509/pkix.RevokedCertificate usage example
revokedCerts := []pkix.RevokedCertificate{
{
SerialNumber: big.NewInt(1),
RevocationTime: now,
},
{
SerialNumber: big.NewInt(42),
RevocationTime: now,
},
}
Reference :
http://golang.org/pkg/crypto/x509/pkix/#RelativeDistinguishedNameSET
See also : Golang crypto/x509.Certificate.CreateCRL() function example
Advertisement
Something interesting
Tutorials
+12.6k Golang : flag provided but not defined error
+11.4k Golang : Concatenate (combine) buffer data example
+7.3k Golang : Calculate how many weeks left to go in a given year
+11k How to test Facebook App on localhost ?
+8.8k Golang : Get final balance from bit coin address example
+30.5k Get client IP Address in Go
+46.5k Golang : Marshal and unmarshal json.RawMessage struct example
+10.1k Golang : Identifying Golang HTTP client request
+4.7k Golang : How to pass data between controllers with JSON Web Token
+9k Golang : Populate or initialize struct with values example
+21.4k Curl usage examples with Golang
+33.9k Golang : Call a function after some delay(time.Sleep and Tick)