# Asterisk PJSIP SSL\_ERROR\_ZERO\_RETURN

**URL:** <https://community.asterisk.org/t/asterisk-pjsip-ssl-error-zero-return/93797>\
**Category:** Asterisk SIP\
**Created:** [August 19, 2022, 11:44am UTC](https://community.asterisk.org/t/asterisk-pjsip-ssl-error-zero-return/93797 "2022-08-19T11:44:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lemongrass](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@lemongrass](https://community.asterisk.org/u/lemongrass)\
**Post date:** [August 19, 2022, 11:44am UTC](https://community.asterisk.org/t/asterisk-pjsip-ssl-error-zero-return/93797/1 "2022-08-19T11:44:12Z")

</div>

Hello

I’m using Asterisk 18.14.0 with TLS PJSIP Endpoints. The certificate for the TLS Endpoint is a valid Let’s Encrypt Certificate generated by certbot.

This seems to work fine in terms of functionality, but I’m getting a ton of the following warnings on my system:

```auto
[Aug 19 13:34:40] WARNING[276075] pjproject: SSL 6 [SSL_ERROR_ZERO_RETURN] (Read) ret: 0 len: 65535
[Aug 19 13:34:50] WARNING[276075] pjproject: SSL 6 [SSL_ERROR_ZERO_RETURN] (Read) ret: 0 len: 65535
[Aug 19 13:35:00] WARNING[276075] pjproject: SSL 6 [SSL_ERROR_ZERO_RETURN] (Read) ret: 0 len: 65535
[Aug 19 13:35:00] WARNING[276075] pjproject: SSL 6 [SSL_ERROR_ZERO_RETURN] (Read) ret: 0 len: 65535
[Aug 19 13:35:00] WARNING[803908] pjproject: SSL 6 [SSL_ERROR_ZERO_RETURN] (Read) ret: 0 len: 65535
[Aug 19 13:35:10] WARNING[276075] pjproject: SSL 6 [SSL_ERROR_ZERO_RETURN] (Read) ret: 0 len: 65535
[Aug 19 13:35:20] WARNING[276075] pjproject: SSL 6 [SSL_ERROR_ZERO_RETURN] (Read) ret: 0 len: 65535

```

The transport is configured like follow:

```auto
[transport-tls-nat]
type=transport
protocol=tls
bind=0.0.0.0:5061
local_net=xxx
external_media_address=xxx
external_signaling_address=xxx
cert_file=xxx
priv_key_file=xxx
verify_server=no

```

The clients connecting to the Asterisk Server are mostly PJSIP and Yealink Clients.

Is there a parameter I can set on the Asterisk to fix these warnings? Or are there special parameters which need to be set when generating the certificate with certbot?

---

<div class="post-metadata">

**Author:** ![InterLinked](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/interlinked/32/5576_2.png) [@InterLinked](https://community.asterisk.org/u/InterLinked)\
**Post date:** [August 19, 2022, 12:09pm UTC](https://community.asterisk.org/t/asterisk-pjsip-ssl-error-zero-return/93797/2 "2022-08-19T12:09:53Z")

</div>

Have you done a packet capture or the like to see what device or endpoint might actually be triggering these warnings?

Often it could be caused or triggered by specific endpoints.

FWIW, I see SSL warnings a lot in the Asterisk CLI, with pjsip/pjproject, and generally I just ignore them, which suggests that maybe it’s not a problem in and of itself (at least, I haven’t figured out how to make them go away completely). This includes systems using Let’s Encrypt with certbot. There tends to be a lot of “noise” here from my experience. If something isn’t working, however, like TLS, then it’s a clue that you should hone in as part of debugging.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 18, 2022, 12:09pm UTC](https://community.asterisk.org/t/asterisk-pjsip-ssl-error-zero-return/93797/3 "2022-09-18T12:09:59Z")

</div>

Closed on September 18, 2022, 12:09pm UTC

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