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
+4.9k JQuery : Calling a function inside Jquery(document) block
+18.5k Golang : Example for RSA package functions
+8.9k Golang : Find network service name from given port and protocol
+6.1k Golang : Scan forex opportunities by Bollinger bands
+5.6k Javascript : How to refresh page with JQuery ?
+7.2k Golang : Use modern ciphers only in secure connection
+9.4k Facebook : Getting the friends list with PHP return JSON format
+23.9k Golang : Use regular expression to validate domain name
+19.4k Golang : Fix cannot download, $GOPATH not set error
+36.5k Golang : Save image to PNG, JPEG or GIF format.
+55.3k Golang : Unmarshal JSON from http response