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
+29.4k Golang : JQuery AJAX post data to server and send data back to client example
+9k Golang : Inject/embed Javascript before sending out to browser example
+5.4k Unix/Linux : How to archive and compress entire directory ?
+6.1k Golang : Create new color from command line parameters
+11.9k Golang : How to parse plain email text and process email header?
+22.2k Golang : Print leading(padding) zero or spaces in fmt.Printf?
+40.5k Golang : Convert to io.ReadSeeker type
+9.5k Golang : Changing a RGBA image number of channels with OpenCV
+13.6k Golang : Get user input until a command or receive a word to stop
+15.4k Golang : Find location by IP address and display with Google Map
+17.3k Golang : How to tell if a file is compressed either gzip or zip ?
+11k Golang : Replace a parameter's value inside a configuration file example