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
+7k Golang : Takes a plural word and makes it singular
+12k Golang : Find and draw contours with OpenCV example
+11.5k Golang : Generate DSA private, public key and PEM files example
+9.7k Golang : Detect number of active displays and the display's resolution
+27.5k Golang : dial tcp: too many colons in address
+40.1k Golang : UDP client server read write example
+8.8k Golang : Heap sort example
+11.4k Golang : Concatenate (combine) buffer data example
+6.9k Nginx : Password protect a directory/folder
+41k Golang : How to check if a string contains another sub-string?
+19.9k Golang : Accept input from user with fmt.Scanf skipped white spaces and how to fix it
+9.1k Golang : Handle sub domain with Gin