Method: OpenSSL::X509::Certificate#serial=

Defined in:
ossl_x509cert.c

#serial=(integer) ⇒ Integer

Returns:



343
344
345
346
347
348
349
350
351
352
353
354
# File 'ossl_x509cert.c', line 343

static VALUE
ossl_x509_set_serial(VALUE self, VALUE num)
{
    X509 *x509;

    GetX509(self, x509);

    x509->cert_info->serialNumber =
	num_to_asn1integer(num, X509_get_serialNumber(x509));

    return num;
}