Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

OpenSSL::X509::Certificate#tbs_bytes

cert.tbs_bytes => string

Returns the DER-encoded bytes of the certificate’s to be signed certificate. This is mainly useful for validating embedded certificate transparency signatures.

See also #subject= #to_der #subject #to_pem also in 4.1 · 4.0