Allow self-signed certificate
Hey there,
really love this project! It would be great if the plugin would allow self-signed certificates, currently it appears not to be possible:

The system log spits out a CERTIFICATE_VERIFY_FAILED error when connecting to my InfluxDB instance behind https://influxdb.home (self-signed certificate).
Mar 22 20:14:03 octopi haproxy[681]: <redacted> [22/Mar/2023:20:14:01.978] public~ octoprint/octoprint1 0/0/1/1560/1563 200 14661 - - ---- 7/7/1/1/0 0/0 "POST /api/settings HTTP/1.1"
Mar 22 20:14:03 octopi octoprint[2396]: 2023-03-22 20:14:03,752 - octoprint.plugins.influxdb2 - ERROR - Could not ping Influx Host with given credentials!
Mar 22 20:14:03 octopi octoprint[2396]: 2023-03-22 20:14:03,753 - octoprint.server.api - ERROR - Error calling SimpleApiPlugin influxdb2
Mar 22 20:14:03 octopi octoprint[2396]: Traceback (most recent call last):
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/urllib3/connectionpool.py", line 710, in urlopen
Mar 22 20:14:03 octopi octoprint[2396]: chunked=chunked,
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/urllib3/connectionpool.py", line 386, in _make_request
Mar 22 20:14:03 octopi octoprint[2396]: self._validate_conn(conn)
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
Mar 22 20:14:03 octopi octoprint[2396]: conn.connect()
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/urllib3/connection.py", line 424, in connect
Mar 22 20:14:03 octopi octoprint[2396]: tls_in_tls=tls_in_tls,
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/urllib3/util/ssl_.py", line 450, in ssl_wrap_socket
Mar 22 20:14:03 octopi octoprint[2396]: sock, context, tls_in_tls, server_hostname=server_hostname
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
Mar 22 20:14:03 octopi octoprint[2396]: return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
Mar 22 20:14:03 octopi octoprint[2396]: File "/usr/lib/python3.7/ssl.py", line 412, in wrap_socket
Mar 22 20:14:03 octopi octoprint[2396]: session=session
Mar 22 20:14:03 octopi octoprint[2396]: File "/usr/lib/python3.7/ssl.py", line 853, in _create
Mar 22 20:14:03 octopi octoprint[2396]: self.do_handshake()
Mar 22 20:14:03 octopi octoprint[2396]: File "/usr/lib/python3.7/ssl.py", line 1117, in do_handshake
Mar 22 20:14:03 octopi octoprint[2396]: self._sslobj.do_handshake()
Mar 22 20:14:03 octopi octoprint[2396]: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1056)
Mar 22 20:14:03 octopi octoprint[2396]: During handling of the above exception, another exception occurred:
Mar 22 20:14:03 octopi octoprint[2396]: Traceback (most recent call last):
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/requests/adapters.py", line 499, in send
Mar 22 20:14:03 octopi octoprint[2396]: timeout=timeout,
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/urllib3/connectionpool.py", line 788, in urlopen
Mar 22 20:14:03 octopi octoprint[2396]: method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/urllib3/util/retry.py", line 592, in increment
Mar 22 20:14:03 octopi octoprint[2396]: raise MaxRetryError(_pool, url, error or ResponseError(cause))
Mar 22 20:14:03 octopi octoprint[2396]: urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='influxdb.home', port=443): Max retries exceeded with url: /api/v2/write?org=home&bucket=octopi (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1056)')))
Mar 22 20:14:03 octopi octoprint[2396]: During handling of the above exception, another exception occurred:
Mar 22 20:14:03 octopi octoprint[2396]: Traceback (most recent call last):
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/server/api/__init__.py", line 94, in pluginData
Mar 22 20:14:03 octopi octoprint[2396]: response = api_plugin.on_api_get(request)
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/util/__init__.py", line 1688, in wrapper
Mar 22 20:14:03 octopi octoprint[2396]: return f(*args, **kwargs)
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_influxdb2/__init__.py", line 84, in on_api_get
Mar 22 20:14:03 octopi octoprint[2396]: self.influxApiTest()
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_influxdb2/__init__.py", line 131, in influxApiTest
Mar 22 20:14:03 octopi octoprint[2396]: raise e
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_influxdb2/__init__.py", line 127, in influxApiTest
Mar 22 20:14:03 octopi octoprint[2396]: headers = {'Authorization': 'Token %s' % self._settings.get(['token'])})
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/requests/api.py", line 115, in post
Mar 22 20:14:03 octopi octoprint[2396]: return request("post", url, data=data, json=json, **kwargs)
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/requests/api.py", line 59, in request
Mar 22 20:14:03 octopi octoprint[2396]: return session.request(method=method, url=url, **kwargs)
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/requests/sessions.py", line 587, in request
Mar 22 20:14:03 octopi octoprint[2396]: resp = self.send(prep, **send_kwargs)
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/requests/sessions.py", line 701, in send
Mar 22 20:14:03 octopi octoprint[2396]: r = adapter.send(request, **kwargs)
Mar 22 20:14:03 octopi octoprint[2396]: File "/home/pi/oprint/lib/python3.7/site-packages/requests/adapters.py", line 563, in send
Mar 22 20:14:03 octopi octoprint[2396]: raise SSLError(e, request=request)
Mar 22 20:14:03 octopi octoprint[2396]: requests.exceptions.SSLError: HTTPSConnectionPool(host='influxdb.home', port=443): Max retries exceeded with url: /api/v2/write?org=home&bucket=octopi (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1056)')))