Skip to content

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

instance method

OpenSSL::SSL::SSLSocket#client_ca

ssl.client_ca => [x509name, ...]

Returns the list of client CAs. Please note that in contrast to SSLContext#client_ca= no array of X509::Certificate is returned but X509::Name instances of the CA’s subject distinguished name.

In server mode, returns the list set by SSLContext#client_ca=. In client mode, returns the list of client CAs sent from the server.

See also #cipher #client_cert_cb #cert #connect also in 4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0