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
+30k Golang : Get time.Duration in year, month, week or day
+14.6k Golang : How to get URL port?
+7k Web : How to see your website from different countries?
+6.3k Golang : How to get capacity of a slice or array?
+30.5k Golang : Generate random string
+18.3k Golang : Get path name to current directory or folder
+7k Golang : constant 20013 overflows byte error message
+9.8k Golang : Get current, epoch time and display by year, month and day
+32.1k Golang : Validate email address with regular expression
+9.4k Golang : Qt Yes No and Quit message box example
+4.7k Unix/Linux : How to pipe/save output of a command to file?
+36k Golang : Get file last modified date and time