Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

Fix to issue 67: Add option to allow self signed certificate connection #68

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

cvalerio
Copy link

Small change that allows users to pass a custom HttpMessageHandler to InfluxDb method, allowing to bypass certificate check for self signed certificates on server.

Usage:

         var handler = new HttpClientHandler
         {
            ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => true
         };
         Metrics.Collector = new CollectorConfiguration()
            .Tag.With("host", Config["hostname"])
            .Batch.AtInterval(TimeSpan.FromSeconds(2))
            .WriteTo.InfluxDB(uri, Config["influxdbname"], Config["influxusername"], Config["influxpassword"], handler)
            .CreateCollector();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy