# Send emails with PDF Dashboard

**URL:** <https://discuss.elastic.co/t/send-emails-with-pdf-dashboard/341105>\
**Category:** Kibana\
**Created:** [August 18, 2023, 3:40pm UTC](https://discuss.elastic.co/t/send-emails-with-pdf-dashboard/341105 "2023-08-18T15:40:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hofrichterovak](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@hofrichterovak](https://discuss.elastic.co/u/hofrichterovak)\
**Post date:** [August 18, 2023, 3:40pm UTC](https://discuss.elastic.co/t/send-emails-with-pdf-dashboard/341105/1 "2023-08-18T15:40:42Z")

</div>

Hello,

I read the documentation about sending email with PDF dashboard in the attachment \>\>\> [Automatically generate reports | Kibana Guide [8.9] | Elastic](https://www.elastic.co/guide/en/kibana/current/automating-report-generation.html)

I wanted to create my own watcher. My Kibana version is 7.17.8

Manually generating PDF reports works.  
I read that URL should be URL for printable dashboard:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/2/f2ec58e5d5e9425bb2032ccf880395bf1e463ba0.png)

So I copied POST URL from dashboard:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/4/04c33f130aec0df29be0a6e2b8be1be454db8cfc.png)

Problem is that my watcher has this alert:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/0/80ba812a6051eeeba1594cd26cdf89e47a522dc1.png)

My watcher looks like this. Please, how can I fix it? 🙂

```auto
{
  "trigger": {
    "schedule": {
      "interval": "3m"
    }
  },
  "input": {
    "none": {}
  },
  "condition": {
    "always": {}
  },
  "actions": {
    "send_email": {
      "email": {
        "profile": "standard",
        "attachments": {
          "xxx.pdf": {
            "reporting": {
              "url": "https://xxxxx.cz/api/reporting/generate/printablePdfV2?jobParams=h%3A%21f%2CviewMode%3Aview%29%2Cversion%3A%277.17.8%27%29%29%2CobjectType%3Adashboard%2Ctitle%3A%27GSK%20SQL%20DWH%27%2Cversion%3A%277.17.8%27%29",
              "retries": 40,
              "interval": "15s",
              "auth": {
                "basic": {
                  "username": "elastic",
                  "password": "::es_redacted::"
                }
              }
            }
          }
        },
        "to": [
          "katerina.xx@xx.cz"
        ],
        "subject": "YX"
      }
    }
  }
}

```

Thank you,

Regards,  
Katerina

---

<div class="post-metadata">

**Author:** ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)\
**Post date:** [August 22, 2023, 4:32pm UTC](https://discuss.elastic.co/t/send-emails-with-pdf-dashboard/341105/2 "2023-08-22T16:32:37Z")

</div>

Hi @hofrichterovak,

My hunch is you need "xpack.http.ssl.certificate\_authorities" configured in elasticsearch.yml file of all the nodes in your cluster. See [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/notification-settings.html#_pem_encoded_files_4) for more information on that specific setting.

---

<div class="post-metadata">

**Author:** ![hofrichterovak](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@hofrichterovak](https://discuss.elastic.co/u/hofrichterovak)\
**Post date:** [September 19, 2023, 12:01pm UTC](https://discuss.elastic.co/t/send-emails-with-pdf-dashboard/341105/3 "2023-09-19T12:01:36Z")

</div>

Hello,

I added this "xpack.http.ssl.certificate\_authorities" , but it shows me still the same mistake.  
Please, where can be problem?

Here is my security configuration:

# ----------------------------------Xpack----------------------------------------

**xpack.http.ssl.certificate\_authorities: certs/ca.pem**

xpack.security.enabled: true  
xpack.security.transport.ssl.enabled: true  
#xpack.security.transport.ssl.verification\_mode: none  
xpack.security.transport.ssl.verification\_mode: full

xpack.security.transport.ssl.key: certs/xx.key  
xpack.security.transport.ssl.certificate: certs/xy.crt  
xpack.security.transport.ssl.certificate\_authorities: certs/ca.crt

xpack.security.http.ssl.enabled: true  
xpack.security.http.ssl.certificate\_authorities: certs/ca.crt  
xpack.security.http.ssl.key: certs/xx.key  
xpack.security.http.ssl.certificate: certs/xy.crt

##############  
"actions": [  
{  
"id": "send\_email",  
"type": "email",  
"status": "failure",  
"error": {  
"root\_cause": [  
{  
"type": "s\_s\_l\_handshake\_exception",  
"reason": "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"  
}  
],  
"type": "s\_s\_l\_handshake\_exception",  
"reason": "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",  
"caused\_by": {  
"type": "validator\_exception",  
"reason": "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",  
"caused\_by": {  
"type": "sun\_cert\_path\_builder\_exception",  
"reason": "unable to find valid certification path to requested target"  
}  
}  
}  
}  
]  
},

---

<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:** [October 17, 2023, 12:02pm UTC](https://discuss.elastic.co/t/send-emails-with-pdf-dashboard/341105/4 "2023-10-17T12:02:34Z")

</div>

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