Skip to content

Commit bf728fe

Browse files
committed
Rework of #3713 - thanks @adonaiohesed
1 parent bf55c3b commit bf728fe

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
@@ -431,15 +431,13 @@ public T ClientCertificates(X509CertificateCollection certificates) =>
431431
Assign(certificates, (a, v) => a._clientCertificates = v);
432432

433433
/// <summary>
434-
/// Use the following certificate to authenticate all HTTP requests. You can also set them on individual
435-
/// request using <see cref="RequestConfiguration.ClientCertificates" />
434+
/// 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" />
436435
/// </summary>
437436
public T ClientCertificate(X509Certificate certificate) =>
438437
Assign(new X509Certificate2Collection { certificate }, (a, v) => a._clientCertificates = v);
439438

440439
/// <summary>
441-
/// Use the following certificate to authenticate all HTTP requests. You can also set them on individual
442-
/// request using <see cref="RequestConfiguration.ClientCertificates" />
440+
/// 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" />
443441
/// </summary>
444442
public T ClientCertificate(string certificatePath) =>
445443
Assign(new X509Certificate2Collection { new X509Certificate(certificatePath) }, (a, v) => a._clientCertificates = v);

0 commit comments

Comments
 (0)