<p>Most likely the <a href="https://secure.php.net/manual/en/book.curl.php" rel="nofollow noreferrer">PHP curl</a> version that's on your box is trying to connect to the endpoint using an older SSL protocol (TLS 1.0, 1.1, etc.) and the endpoint requires something higher (TLS 1.2, 1.3, etc.).</p>

<p><a href="http://blog.techstacks.com/2010/03/3-common-causes-of-unknown-ssl-protocol-errors-with-curl.html" rel="nofollow noreferrer">http://blog.techstacks.com/2010/03/3-common-causes-of-unknown-ssl-protocol-errors-with-curl.html</a></p>

<p>The command line version of <code>curl</code> is probably using a newer protocol.</p>

CC BY-SA 4.0
2018-06-11T10:07:59.283Z
Thanks this pointed me in the right direction. I updated curl on the box to 7.60.0 which uses OpenSSL/1.0.1e. All working now!
Matt Bindoff
CC BY-SA 4.0
2018-06-08T21:59:07.340Z
2018-06-08T21:59:07.340Z
Brad Bell
<p>I'm getting an error when trying to access an endpoint over ssl in FeedMe. eg <a href="https://jsonplaceholder.typicode.com/posts" rel="nofollow noreferrer">https://jsonplaceholder.typicode.com/posts</a></p>

<p>The error is
<code>cURL error 35: SSL connect error</code></p>

<p>Error reported in web.log is
<code>[verbb\feedme\base\PluginTrait::error] Test: Unable to reach https://jsonplaceholder.typicode.com/posts. Message: cURL error 35: SSL connect error (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)</code></p>

<p>I've tried running curl directly from commandline on the server and it runs fine:
<code>curl https://jsonplaceholder.typicode.com/posts</code> prints the JSON.</p>

<p><code>PHP: 7.2.5</code>
<code>cURL: 7.19.7</code></p>

<plugin-feedme><ssl>
FeedMe SSL error - cURL error 35: SSL connect error
# FeedMe SSL error - cURL error 35: SSL connect error

(Asked by: username_0 on 2018-06-08)

I'm getting an error when trying to access an endpoint over ssl in FeedMe. eg <https://jsonplaceholder.typicode.com/posts>

The error is
`cURL error 35: SSL connect error`

Error reported in web.log is
`[verbb\feedme\base\PluginTrait::error] Test: Unable to reach https://jsonplaceholder.typicode.com/posts. Message: cURL error 35: SSL connect error (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)`

I've tried running curl directly from commandline on the server and it runs fine:
`curl https://jsonplaceholder.typicode.com/posts` prints the JSON.

`PHP: 7.2.5`
`cURL: 7.19.7`

**Tags:** plugin-feedme, ssl

---

## 1 answers

### Answer by username_1 on 2018-06-08. Score: 1 | Accepted answer

Most likely the [PHP curl](https://secure.php.net/manual/en/book.curl.php) version that's on your box is trying to connect to the endpoint using an older SSL protocol (TLS 1.0, 1.1, etc.) and the endpoint requires something higher (TLS 1.2, 1.3, etc.).

<http://blog.techstacks.com/2010/03/3-common-causes-of-unknown-ssl-protocol-errors-with-curl.html>

The command line version of `curl` is probably using a newer protocol.

> **Comments:**
> **username_0**: Thanks this pointed me in the right direction. I updated curl on the box to 7.60.0 which uses OpenSSL/1.0.1e. All working now!  

---

