Unknown authority / bad certificate

My domain is:
influxdb-dev.allthingssmart.be
I ran this command:
sudo influxd --tls-cert “/etc/letsencrypt/live/influxdb-dev.allthingssmart.be/cert.pem” --tls-key “/etc/letsencrypt/live/influxdb-dev.allthingssmart.be/privkey.pem”
It produced this output:
2020-03-07T14:37:35.735616Z info Starting {“log_id”: “0LPMivQl000”, “service”: “storage-engine”, “component”: “retention_enforcer”, “check_interval”: “1h”}
2020-03-07T14:37:35.736845Z info Starting query controller {“log_id”: “0LPMivQl000”, “service”: “storage-reads”, “concurrency_quota”: 10, “initial_memory_bytes_quota_per_query”: 9223372036854775807, “memory_bytes_quota_per_query”: 9223372036854775807, “max_memory_bytes”: 0, “queue_size”: 10}
2020-03-07T14:37:36.020086Z info Starting {“log_id”: “0LPMivQl000”, “service”: “telemetry”, “interval”: “8h”}
2020-03-07T14:37:36.020312Z info Listening {“log_id”: “0LPMivQl000”, “transport”: “https”, “addr”: “:9999”, “port”: 9999}
2020-03-07T14:37:46.027358Z error Unable to gather {“log_id”: “0LPMivQl000”, “error”: “Get https://influxdb-dev.allthingssmart.be:9999/metrics: x509: certificate signed by unknown authority”}
2020/03/07 15:37:46 http: TLS handshake error from 18.185.106.211:34146: remote error: tls: bad certificate
2020-03-07T14:37:56.025968Z error Unable to gather {“log_id”: “0LPMivQl000”, “error”: “Get https://influxdb-dev.allthingssmart.be:9999/metrics: x509: certificate signed by unknown authority”}
2020/03/07 15:37:56 http: TLS handshake error from 18.185.106.211:34148: remote error: tls: bad certificate
My web server is (include version):
N/A
The operating system is (include version):
Ubuntu 18.04
My hosting provider, if applicable, is:
N/A
I can login to a root shell on my machine (yes or no, or I don’t know):
yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
no
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):

Although I’m able to access my server using TLS/(LetEncrypt without problems I get the following error messages on my server:

2020/03/07 15:29:27 http: TLS handshake error from x.xxx.xxx.xxx:34038: remote error: tls: bad certificate
2020-03-07T14:29:37.412867Z error Unable to gather {“log_id”: “0LPMFUj0000”, “error”: “Get https://influxdb-dev.allthingssmart.be:9999/metrics: x509: certificate signed by unknown authority”}
2020/03/07 15:29:37 http: TLS handshake error from 18.185.106.211:34040: remote error: tls: bad certificate

Is this "normal behavior or I can resolve this unknown authority and bad certificate errors?

Thanks.

what if...

sudo influxd --tls-cert “/etc/letsencrypt/live/influxdb-dev.allthingssmart.be/fullchain.pem” --tls-key “/etc/letsencrypt/live/influxdb-dev.allthingssmart.be/privkey.pem”

don't copypaste, "" chars are messed up.


anyhow, I see your website just fine, with a 404 error.

Thanks for your advice.
Indeed, I also just found in another post https://github.com/matrix-org/matrix-federation-tester/issues/59 :slight_smile: , using fullchain.pem (instead of cert.pem) resolves the problem.

Thanks.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.