Openssl certificate error creating node_exporter config

I’m getting the following error while accessing the node_exporter metrics

[manu@Inspiron-14-5430 bin (⎈|test:default)]$ curl https://localhost:9100/metrics
curl: (35) error:0A00010B:SSL routines::wrong version number
[manu@Inspiron-14-5430 bin (⎈|test:default)]$ 

I’m using ubuntu 22.04

[manu@Inspiron-14-5430 bin (⎈|test:default)]$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.4 LTS
Release:	22.04
Codename:	jammy
[manu@Inspiron-14-5430 bin (⎈|test:default)]$ 

Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.81.0-1ubuntu1.16).
openssl is already the newest version (3.0.2-0ubuntu1.15).

Do we need to configure RP (nginx RP) to make this work?

This issue was resolved. basically what we have to do is when we configure the node exporter service file, need to add the following line
instead of --web.config should add --web.config.file
sample configuration file

[Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target

[Service]
User=node_exporter
Group=node_exporter
Type=simple
ExecStart=/usr/local/bin/node_exporter --web.config.file=/etc/node_exporter/config.yml
#web.config.file=/etc/node_exporter/config.yml

[Install]
WantedBy=multi-user.target
~