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
+11.2k Golang : Proper way to test CIDR membership of an IP 4 or 6 address example
+6.9k Mac/Linux/Windows : Get CPU information from command line
+10k Golang : Channels and buffered channels examples
+18.6k Golang : Get download file size
+9.2k Golang : Generate Codabar
+13.7k Golang : Check if an integer is negative or positive
+6.1k Golang : Dealing with backquote
+13.4k Golang : Generate Code128 barcode
+11.1k Golang : Fix go.exe is not compatible with the version of Windows you're running
+7.9k Golang : Grayscale Image
+5.3k Javascript : Change page title to get viewer attention
+9k Golang : Get SPF and DMARC from email headers to fight spam