# CERN Certificates for influxdb on RPI

**URL:** <https://linux-community.web.cern.ch/t/cern-certificates-for-influxdb-on-rpi/168>\
**Category:** UBUNTU\
**Tags:** rpi, raspberry, influxdb, certificate, ssl\
**Created:** [March 3, 2022, 5:43pm UTC](https://linux-community.web.cern.ch/t/cern-certificates-for-influxdb-on-rpi/168 "2022-03-03T17:43:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maakrawc](https://linux-community.web.cern.ch/letter_avatar_proxy/v4/letter/m/ba9def/32.png) [@maakrawc](https://linux-community.web.cern.ch/u/maakrawc)\
**Post date:** [March 3, 2022, 5:43pm UTC](https://linux-community.web.cern.ch/t/cern-certificates-for-influxdb-on-rpi/168/1 "2022-03-03T17:43:55Z")

</div>

As I try to connect to the influxdb instance I get the following warning:

_/usr/lib/python3/dist-packages/urllib3/connectionpool.py:1015: InsecureRequestWarning: Unverified HTTPS request is being made to host ‘dbod-hgcal-si-clean-room-monitor.cern.ch’. Adding certificate verification is strongly advised. See: [Advanced Usage - urllib3 2.0.0.dev0 documentation](https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings)  
warnings.warn(  
Traceback (most recent call last):  
File “/home/hgsensor/Applications/clean\_room\_monitor/logger/logger.py”, line 177, in   
main()  
File “/home/hgsensor/Applications/clean\_room\_monitor/logger/logger.py”, line 174, in main  
run.execute()  
File “/home/hgsensor/Applications/clean\_room\_monitor/logger/logger.py”, line 144, in execute  
self.client.write\_points(json\_data, database=‘hgcal\_si\_clean\_room\_monitor’)  
File “/home/hgsensor/.local/lib/python3.9/site-packages/influxdb/client.py”, line 603, in write\_points  
return self.\_write\_points(points=points,  
File “/home/hgsensor/.local/lib/python3.9/site-packages/influxdb/client.py”, line 681, in \_write\_points  
self.write(  
File “/home/hgsensor/.local/lib/python3.9/site-packages/influxdb/client.py”, line 413, in write  
self.request(  
File “/home/hgsensor/.local/lib/python3.9/site-packages/influxdb/client.py”, line 378, in request  
raise InfluxDBClientError(err\_msg, response.status\_code)_  
And error:  
_influxdb.exceptions.InfluxDBClientError: 404: {“error”:“database not found: “hgcal\_si\_clean\_room\_monitor””}_  
From this document I assume that they are connected: [InfluxDB - Database on demand User Guide](https://dbod-user-guide.web.cern.ch/getting_started/influxdb/#connecting-to-the-database)  
I have downloaded the CERN Certificates and installed them like this:

1. To add:
2. Copy your CA to `dir /usr/local/share/ca-certificates/`
3. Use command: `sudo cp foo.crt /usr/local/share/ca-certificates/foo.crt`
4. Update the CA store: `sudo update-ca-certificates`

I work on Ubuntu 20.04.3 LTS  
But I still get the message.
