diff --git a/docs/client-concepts/connection/connecting-to-elasticsearch-v8.asciidoc b/docs/client-concepts/connection/connecting-to-elasticsearch-v8.asciidoc index b61d20015fa..b5df0ddec78 100644 --- a/docs/client-concepts/connection/connecting-to-elasticsearch-v8.asciidoc +++ b/docs/client-concepts/connection/connecting-to-elasticsearch-v8.asciidoc @@ -41,7 +41,7 @@ The fingerprint can be set by calling the `CertificateFingerprint` method on a ` [source,csharp] ---- -var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200")); +var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200")); var settings = new ConnectionSettings(pool) .CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4"); @@ -60,7 +60,7 @@ you may begin by using the `elastic` user and the automatically generated passwo [source,csharp] ---- -var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200")); +var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200")); var settings = new ConnectionSettings(pool) .CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4") @@ -83,7 +83,7 @@ Compatibility mode may also be enabled directly on `ConnectionSettings` by calli [source,csharp] ---- -var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200")); +var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200")); var settings = new ConnectionSettings(pool) .CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4") diff --git a/tests/Tests/ClientConcepts/Certificates/WorkingWithCertificates.doc.cs b/tests/Tests/ClientConcepts/Certificates/WorkingWithCertificates.doc.cs index 6694ebbf741..76eb44400c3 100644 --- a/tests/Tests/ClientConcepts/Certificates/WorkingWithCertificates.doc.cs +++ b/tests/Tests/ClientConcepts/Certificates/WorkingWithCertificates.doc.cs @@ -226,7 +226,7 @@ public PkiApiTests(PkiCluster cluster, EndpointUsage usage) : base(cluster, usag */ [U] public void CertificateFingerprint() { - var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200")); + var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200")); var settings = new ConnectionSettings(pool) .CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4"); diff --git a/tests/Tests/ClientConcepts/Connection/ConnectingToElasticsearchV8.doc.cs b/tests/Tests/ClientConcepts/Connection/ConnectingToElasticsearchV8.doc.cs index cf6e7c75e9e..38e8e206f82 100644 --- a/tests/Tests/ClientConcepts/Connection/ConnectingToElasticsearchV8.doc.cs +++ b/tests/Tests/ClientConcepts/Connection/ConnectingToElasticsearchV8.doc.cs @@ -38,7 +38,7 @@ public class ConnectingToElasticsearchV8 */ [U] public void CertificateFingerprint() { - var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200")); + var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200")); var settings = new ConnectionSettings(pool) .CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4"); @@ -58,7 +58,7 @@ [U] public void CertificateFingerprint() */ [U] public void BasicAuth() { - var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200")); + var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200")); var settings = new ConnectionSettings(pool) .CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4") @@ -82,7 +82,7 @@ [U] public void BasicAuth() */ [U] public void CompatibilityMode() { - var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200")); + var pool = new SingleNodeConnectionPool(new Uri("https://localhost:9200")); var settings = new ConnectionSettings(pool) .CertificateFingerprint("94:75:CE:4F:EB:05:32:83:40:B8:18:BB:79:01:7B:E0:F0:B6:C3:01:57:DB:4D:F5:D8:B8:A6:BA:BD:6D:C5:C4")