# File is not a certificate adding metricbeat issue

**URL:** https://discuss.elastic.co/t/file-is-not-a-certificate-adding-metricbeat-issue/303951
**Category:** Beats
**Tags:** beats-module, metricbeat
**Created:** [May 4, 2022, 1:58pm UTC](https://discuss.elastic.co/t/file-is-not-a-certificate-adding-metricbeat-issue/303951 "2022-05-04T13:58:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mangeshmj1992](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mangeshmj1992](https://discuss.elastic.co/u/mangeshmj1992)
#### Post date: [May 4, 2022, 1:58pm UTC](https://discuss.elastic.co/t/file-is-not-a-certificate-adding-metricbeat-issue/303951/1 "2022-05-04T13:58:12Z")

</div>

Hello team,  
While starting metricbeat , i am getting below error.

```auto
D:\path\cert.jks; file is not a certificate adding 

```

tomcat.yml module:

```auto
# Module: tomcat
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.5/metricbeat-module-tomcat.html

- module: tomcat
  metricsets: ['threading', 'cache', 'memory', 'requests']
  period: 10s
  hosts: ['https://localhost:443']
  ssl.enabled: true   
  ssl.certificate_authorities: ["D:\\path\\wildcard_keystore.jks","D:\\sweapp\\applicationcontainer_external\\siebelcerts\\wildcard_truststore.jks"]
  ssl.verification_mode: full  
  path: "/jolokia/?ignoreErrors=true&canonicalNaming=false"

```

---

<div class="post-metadata">

### Author: ![Tetiana\_Kravchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tetiana_kravchenko/32/102683_2.png) [@Tetiana\_Kravchenko](https://discuss.elastic.co/u/Tetiana_Kravchenko)
#### Post date: [May 5, 2022, 12:13pm UTC](https://discuss.elastic.co/t/file-is-not-a-certificate-adding-metricbeat-issue/303951/2 "2022-05-05T12:13:25Z")

</div>

Hi @mangeshmj1992,  
did you try to start metricbeat without `ssl.*` parameters? I don't think it is supported - [Tomcat module | Metricbeat Reference [master] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-module-tomcat.html)

---

<div class="post-metadata">

### Author: ![mangeshmj1992](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mangeshmj1992](https://discuss.elastic.co/u/mangeshmj1992)
#### Post date: [May 5, 2022, 2:07pm UTC](https://discuss.elastic.co/t/file-is-not-a-certificate-adding-metricbeat-issue/303951/3 "2022-05-05T14:07:34Z")

</div>

Hello @Tetiana_Kravchenko ,  
You mean only with below config:

```auto
- module: tomcat
  metricsets: ['threading', 'cache', 'memory', 'requests']
  period: 10s
  hosts: ['http://localhost:443']
  path: "/jolokia/?ignoreErrors=true&canonicalNaming=false"

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 2, 2022, 4:08pm UTC](https://discuss.elastic.co/t/file-is-not-a-certificate-adding-metricbeat-issue/303951/4 "2022-06-02T16:08:32Z")

</div>

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