Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
OpenSSL::X509::Certificate#not_before=
(::Time) -> ::Time
cert.not_before = time => time
ext/openssl/ossl_x509cert.c
View on GitHub ↗
static VALUE
ossl_x509_set_not_before(VALUE self, VALUE time)
{
X509 *x509;
ASN1_TIME *asn1time;
GetX509(self, x509);
asn1time = ossl_x509_time_adjust(NULL, time);
if (!X509_set1_notBefore(x509, asn1time)) {
ASN1_TIME_free(asn1time);
ossl_raise(eX509CertError, "X509_set_notBefore");
}
ASN1_TIME_free(asn1time);
return time;
}
No documentation available
See also
#not_before
#pretty_print
#not_after=
#public_key
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0