| 1234567891011121314151617181920212223242526272829303132333435 | 
--:api: get-certificates:response: GetSslCertificatesResponse--[id="{upid}-{api}"]=== SSL Certificate API[id="{upid}-{api}-request"]==== Get Certificates RequestThe X.509 Certificates that are used to encrypt communications in anElasticsearch cluster using the `security().getSslCertificates()` method:["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests}/SecurityDocumentationIT.java[{api}-execute]--------------------------------------------------[id="{upid}-{api}-response"]==== Get Certificates ResponseThe returned +{response}+ contains a single field, `certificates`.This field, accessed with `getCertificates` returns a List of `CertificateInfo`objects containing the information for all the certificates used.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests}/SecurityDocumentationIT.java[{api}-response]--------------------------------------------------<1> `certificates` is a List of `CertificateInfo`include::../execution.asciidoc[]
 |