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
+5.4k Unix/Linux/MacOSx : How to remove an environment variable ?
+6.3k PHP : How to handle URI or URL with non-ASCII characters such as Chinese/Japanese/Korean(CJK) ?
+36k Golang : Get file last modified date and time
+17.2k Golang : When to use init() function?
+30.9k error: trying to remove "yum", which is protected
+23.5k Golang : Get ASCII code from a key press(cross-platform) example
+5k Golang : Get a list of crosses(instruments) available to trade from Oanda account
+32.2k Golang : Convert []string to []byte examples
+8.2k Golang : Routes multiplexer routing example with regular expression control
+6.2k Linux/Unix : Commands that you need to be careful about
+5.8k Cash Flow : 50 days to pay your credit card debt
+15.6k Chrome : ERR_INSECURE_RESPONSE and allow Chrome browser to load insecure content