mTLS was enabled but failed to access Prometheus via web

273 views
Skip to first unread message

Boyu Du

unread,
Apr 8, 2023, 3:39:10 AM4/8/23
to Prometheus Users
Hi Team,
I enabled mTLS on Prometheus server via web-config:
tls_server_config:
  cert_file: <Prometheus server cert>
  key_file: <Prometheus server key>
client_auth_type: RequireAndVerifyClientCert
client_ca_file: <CA file that singed server cert above>

This worked fine since all my underlying Prometheus Agent and Grafana could talk with this server successfully. However, when I tried to check the targets it monitors via browser, it says:
"The connection for this site is not secure. <Prometheus Server> didn't accept your login certificate, or a login certificate may not have been provided."

And from the log file of Prometheus Server:
"caller=stdlib.go:105 level=error component=web caller="http: TLS handshake error from <server I accessed Prometheus Server>" msg="tls: client didn't provide a certificate""

The server I access the Prometheus Server URL is a windows and it has cert imported, which is signed by the same CA.

May I know what I missed in the config?

Thanks

Stuart Clark

unread,
Apr 8, 2023, 4:21:04 AM4/8/23
to Boyu Du, Prometheus Users
How have you configured the Windows machine? Have you just imported the
CA into Windows, or did you generate a client certificate and import /
configure that too?

--
Stuart Clark

Reply all
Reply to author
Forward
0 new messages