Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. 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.0 · 3.4