In the lab, we generated two different certificates (with keys) in 2 nodes. The certificate content is different. While configuring in prometheus server, how can we use the same certificate of one of the nodes for both nodes?
Hi @rahulcomp24,
You can check the following steps:
-
Copy the certificate and key from one of the nodes to the other node.
-
In the
prometheus.yml
configuration file, update thetls_config
section to point to the copied certificate and key files. For example:
tls_config:
cert_file: /etc/prometheus/prometheus.crt
key_file: /etc/prometheus/prometheus.key
For your reference: