func newSerialNumber() (*big.Int, error) {
	// A serial number can be up to 20 octets in size.
	// https://tools.ietf.org/html/rfc5280#section-4.1.2.2
	n, err := rand.Int(rand.Reader, new(big.Int).Lsh(big.NewInt(1), 8*20))
	if err != nil {
		return nil, errors.Annotatef(err, "failed to generate serial number")
	}
	return n, nil
}
// newSerialNumber returns  a new random serial number suitable for use in a
// certificate.
newSerialNumber returns  a new random serial number suitable for use in a
certificate.
// newSerialNumber returns a new random serial number suitable for use in a // certificate .
func newSerialNumber() (*big.Int, error) {
	n, err := rand.Int(rand.Reader, new(big.Int).Lsh(big.NewInt(1), 8*20))
	if err != nil {
		return nil, errors.Annotatef(err, "failed to generate serial number")
	}
	return n, nil
}
func newSerialNumber ( ) ( * big . Int , error ) { n , err := rand . Int ( rand . Reader , new ( big . Int ) . Lsh ( big . NewInt ( 1 ) , 8 * 20 ) ) if err != nil { return nil , errors . Annotatef ( err , " " ) } return n , nil }
newSerialNumber returns  a new random serial number suitable for use in a
certificate.
newSerialNumber returns a new random serial number suitable for use in a certificate .
// A serial number can be up to 20 octets in size. // https://tools.ietf.org/html/rfc5280#section-4.1.2.2