Skip to content

Commit 39cb86a

Browse files
committed
Rework of #3713 - thanks @adonaiohesed
1 parent e736c06 commit 39cb86a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/client-concepts/connection/configuration-options.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ Basic Authentication credentials to send with all requests to Elasticsearch
3232

3333
`ClientCertificate`::
3434

35-
Use the following certificate to authenticate all HTTP requests. You can also set them on individual request using `ClientCertificates`
35+
Use a `X509Certificate` to authenticate all HTTP requests. You can also set them on individual request using `ClientCertificates`
3636

3737
`ClientCertificate`::
3838

39-
Use the following certificate to authenticate all HTTP requests. You can also set them on individual request using `ClientCertificates`
39+
Use a file path to a certificate to authenticate all HTTP requests. You can also set them on individual request using `ClientCertificates`
4040

4141
`ClientCertificates`::
4242

src/Elasticsearch.Net/Configuration/ConnectionConfiguration.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,15 +482,13 @@ public T ClientCertificates(X509CertificateCollection certificates) =>
482482
Assign(certificates, (a, v) => a._clientCertificates = v);
483483

484484
/// <summary>
485-
/// Use the following certificate to authenticate all HTTP requests. You can also set them on individual
486-
/// request using <see cref="RequestConfiguration.ClientCertificates" />
485+
/// Use a <see cref="System.Security.Cryptography.X509Certificates.X509Certificate"/> to authenticate all HTTP requests. You can also set them on individual request using <see cref="RequestConfiguration.ClientCertificates" />
487486
/// </summary>
488487
public T ClientCertificate(X509Certificate certificate) =>
489488
Assign(new X509Certificate2Collection { certificate }, (a, v) => a._clientCertificates = v);
490489

491490
/// <summary>
492-
/// Use the following certificate to authenticate all HTTP requests. You can also set them on individual
493-
/// request using <see cref="RequestConfiguration.ClientCertificates" />
491+
/// Use a file path to a certificate to authenticate all HTTP requests. You can also set them on individual request using <see cref="RequestConfiguration.ClientCertificates" />
494492
/// </summary>
495493
public T ClientCertificate(string certificatePath) =>
496494
Assign(new X509Certificate2Collection { new X509Certificate(certificatePath) }, (a, v) => a._clientCertificates = v);

0 commit comments

Comments
 (0)