If you want your website to have a *valid* certificate which web browsers trust, then you shouldn't use openssl: you should use letsencrypt <https://letsencrypt.org/>, using a client program such as certbot, dehydrated, acme.sh. Letsencrypt has plenty of getting started guides, plus its own forum <https://community.letsencrypt.org/> where you can ask questions about this.
This will create two files: a private key, and a certificate chain. You would then refer to these using tls_server_config <https://prometheus.io/docs/prometheus/latest/configuration/https/> in a separate config file that you point to with --web.config.file. tls_config is used when prometheus itself is making *outbound* https connections - for example when scraping an exporter or talking to an API for service discovery - so isn't relevant here. On Thursday, 15 June 2023 at 10:06:39 UTC+1 Kolja Krückmann wrote: > [EDIT] > > My goal is to connect to prometheus-website (from a client not the host > itself) via https, because I want to embed the website in a powerpoint. > Unfortunatly the Add-in from ppt only allows https: websites > Kolja Krückmann schrieb am Donnerstag, 15. Juni 2023 um 10:58:56 UTC+2: > >> Hi all, I want to run prometheus as https. >> I searched through the whole doc and this google.group. Unfortunatly I >> still don't understand how I use the certificates and how to exactly get >> all them files (.key, .ca, .cert) I know so far, that I should use openssl >> for creating said files but what values are needed, do I need both configs >> (see subject) for opening the web dashboard of prometheus over https? >> >> I just don't find the right instruction for doing this. Maybe I am just >> having a bad day and can't find anything... >> >> Kind regards, >> Kolja >> > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/21bbabbd-3cbc-4425-889c-57b25da8866cn%40googlegroups.com.

