> Source: [sk180311](https://support.checkpoint.com/results/sk/sk180311)

# sk180311 - Using an SSL certificate with Skyline fails with "Exception: Invalid format for the exporter CA public key"

| Property | Value |
|----------|-------|
| Solution ID | sk180311 |
| Date Created | 2022-11-29 |
| Last Modified | 2022-11-29 |
| Technical Level | Advanced |
| Products | Security Gateway |
| Versions | R81.20, R81.10 (EOS), R81 (EOS) |

## Symptoms

- The `/opt/CPotelcol/REST.py --set_open_telemetry "$(cat `)" command fails with this backtrace:   
> `
> Error: Invalid format for the exporter CA public key`  
> `
> Traceback (most recent call last):`  
> `
> File "/opt/CPotelcol/REST.py", line 977, in main`  
> `
>
> req.setExportTargets({ "add" : [generateSettings(obj) for obj in reqData['export-targets']["add"]] })`  
> `
>
> File "/opt/CPotelcol/REST.py", line 946, in generateSettings`  
> `
>
> _exportTarget._serverAuth._caPublicKey.setValue(ca_public_key)`  
> `
>
> File "/opt/CPotelcol/REST.py", line 375, in setValue`  
> `
>
> raise Exception("Invalid format for the exporter CA public key")`  
> `
>
> Exception: Invalid format for the exporter CA public key`  
> `
> `

## Cause

The certificate payload contains newline characters (\\n).  

These newline characters do not agree with the required public key format.

<br />

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
