Golang crypto/x509.Certificate.CheckCRLSignature() function example

package crypto/x509

CheckCRLSignature checks that the signature in the certificate revoke list is from the cert.

Golang crypto/x509.Certificate.CheckCRLSignature() function usage example

 err = certificate.CheckCRLSignature(certificateList)

 if err != nil {
 fmt.Println(err)
 }

NOTE : To see how certificate and certificateList is generated. See https://www.socketloop.com/references/golang-crypto-x509-parsedercrl-function-example

Reference :

http://golang.org/pkg/crypto/x509/#Certificate.CheckCRLSignature

  See also : Golang crypto/x509.ParseDERCRL function example

Advertisement