LDAP with 636

Hi friends;
Although LDAP without tls is working properly, I cant get it worked with tls.
I dont have any idea where the problem is.
I uploaded the LDAP certificate to /etc/prosody/certs NOT KEY.

service prosody status:
● prosody.service - Prosody XMPP Server
Loaded: loaded (/lib/systemd/system/prosody.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2020-09-28 17:44:59 +03; 1min 36s ago
Docs: https://prosody.im/doc
Main PID: 703 (lua5.2)
Tasks: 1 (limit: 4915)
Memory: 23.7M
CGroup: /system.slice/prosody.service
└─703 lua5.2 /usr/bin/prosody

Sep 28 17:44:59 myhostname prosody[703]: certmanager: SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for speakerstats.myhostname.mydomain.com
Sep 28 17:44:59 myhostname prosody[703]: speakerstats.myhostname.mydomain.com:tls: Error creating contexts for s2sin: error loading certificate (no start line)
Sep 28 17:44:59 myhostname prosody[703]: certmanager: SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for focus.myhostname.mydomain.com)
Sep 28 17:44:59 myhostname prosody[703]: focus.myhostname.mydomain.com:tls: Error creating context for c2s: error loading certificate (no start line)
Sep 28 17:44:59 myhostname prosody[703]: certmanager: SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for focus.myhostname.mydomain.com)
Sep 28 17:44:59 myhostname prosody[703]: focus.myhostname.mydomain.com:tls: Error creating contexts for s2sout: error loading certificate (no start line)
Sep 28 17:44:59 myhostname prosody[703]: certmanager: SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for focus.myhostname.mydomain.com)
Sep 28 17:44:59 myhostname prosody[703]: focus.myhostname.mydomain.com:tls: Error creating contexts for s2sin: error loading certificate (no start line)
Sep 28 17:45:20 myhostname prosody[703]: mod_bosh: Traceback[bosh]: /usr/lib/prosody/modules/ldap.lib.lua:171: Connect error
stack traceback:
[C]: in function ‘assert’
/usr/lib/prosody/modules/ldap.lib.lua:171: in function ‘getconnection’
/usr/lib/prosody/modules/ldap.lib.lua:180: in function </usr/lib/prosody/modules/ldap.lib.lua:179>
(…tail calls…)
/usr/lib/prosody/modules/mod_auth_ldap2/mod_auth_ldap2.lua:54: in function ‘plain_test’
/usr/lib/prosody/util/sasl/plain.lua:75: in function </usr/lib/prosody/util/sasl/plain.lua:39>
(…tail calls…)
/usr/lib/prosody/modules/mod_saslauth.lua:77: in function </usr/lib/prosody/modules/mod_saslauth.lua:66>
(…tail calls…)
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/core/stanza_router.lua:142: in function ‘dispatch_stanza’
/usr/lib/prosody/modules/mod_bosh.lua:305: in function ‘func’
/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
stack traceback:
/usr/lib/prosody/util/async.lua:211: in function ‘run’
/usr/lib/prosody/modules/mod_bosh.lua:447: in function ‘cb_handlestanza’
/usr/lib/prosody/util/xmppstream.lua:182: in function </usr/lib/prosody/util/xmppstream.lua:162>
[C]: in function ‘parse’
/usr/lib/prosody/util/xmppstream.lua:282: in function ‘feed’
/usr/lib/prosody/modules/mod_bosh.lua:133: in function ‘?’
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/net/http/server.lua:228: in function </usr/lib/prosody/net/http/server.lua:176>
[C]: in function ‘xpcall’
/usr/lib/prosody/net/http/server.lua:108: in function ‘process_next’
/usr/lib/prosody/net/http/server.lua:124: in function ‘success_cb’
/usr/lib/prosody/net/http/parser.lua:177: in function ‘feed’
/usr/lib/prosody/net/http/server.lua:155: in function </usr/lib/prosody/net/http/server.lua:154>
(…tail calls…)
/usr/lib/prosody/net/server_select.lua:915: in function </usr/lib/prosody/net/server_select.lua:899>
[C]: in function ‘xpcall’
/usr/bin/prosody:80: in function ‘loop’
/usr/bin/prosody:90: in main chunk
[C]: in ?
Sep 28 17:46:17 myhostname prosody[703]: mod_bosh: Traceback[bosh]: /usr/lib/prosody/modules/ldap.lib.lua:171: Connect error
stack traceback:
[C]: in function ‘assert’
/usr/lib/prosody/modules/ldap.lib.lua:171: in function ‘getconnection’
/usr/lib/prosody/modules/ldap.lib.lua:180: in function </usr/lib/prosody/modules/ldap.lib.lua:179>
(…tail calls…)
/usr/lib/prosody/modules/mod_auth_ldap2/mod_auth_ldap2.lua:54: in function ‘plain_test’
/usr/lib/prosody/util/sasl/plain.lua:75: in function </usr/lib/prosody/util/sasl/plain.lua:39>
(…tail calls…)
/usr/lib/prosody/modules/mod_saslauth.lua:77: in function </usr/lib/prosody/modules/mod_saslauth.lua:66>
(…tail calls…)
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/core/stanza_router.lua:142: in function ‘dispatch_stanza’
/usr/lib/prosody/modules/mod_bosh.lua:305: in function ‘func’
/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
stack traceback:
/usr/lib/prosody/util/async.lua:211: in function ‘run’
/usr/lib/prosody/modules/mod_bosh.lua:447: in function ‘cb_handlestanza’
/usr/lib/prosody/util/xmppstream.lua:182: in function </usr/lib/prosody/util/xmppstream.lua:162>
[C]: in function ‘parse’
/usr/lib/prosody/util/xmppstream.lua:282: in function ‘feed’
/usr/lib/prosody/modules/mod_bosh.lua:133: in function ‘?’
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/net/http/server.lua:228: in function </usr/lib/prosody/net/http/server.lua:176>
[C]: in function ‘xpcall’
/usr/lib/prosody/net/http/server.lua:108: in function ‘process_next’
/usr/lib/prosody/net/http/server.lua:124: in function ‘success_cb’
/usr/lib/prosody/net/http/parser.lua:177: in function ‘feed’
/usr/lib/prosody/net/http/server.lua:155: in function </usr/lib/prosody/net/http/server.lua:154>
(…tail calls…)
/usr/lib/prosody/net/server_select.lua:915: in function </usr/lib/prosody/net/server_select.lua:899>
[C]: in function ‘xpcall’
/usr/bin/prosody:80: in function ‘loop’
/usr/bin/prosody:90: in main chunk
[C]: in ?

prosody.err:

Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for lobby.myhostname.mydomain.com)
Sep 28 17:44:59 lobby.myhostname.mydomain.com:tls error Error creating context for c2s: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for lobby.myhostname.mydomain.com)
Sep 28 17:44:59 lobby.myhostname.mydomain.com:tls error Error creating contexts for s2sout: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for lobby.myhostname.mydomain.com)
Sep 28 17:44:59 lobby.myhostname.mydomain.com:tls error Error creating contexts for s2sin: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for conference.myhostname.mydomain.com)
Sep 28 17:44:59 conference.myhostname.mydomain.com:tls error Error creating context for c2s: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for conference.myhostname.mydomain.com)
Sep 28 17:44:59 conference.myhostname.mydomain.com:tls error Error creating contexts for s2sout: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for conference.myhostname.mydomain.com)
Sep 28 17:44:59 conference.myhostname.mydomain.com:tls error Error creating contexts for s2sin: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for conferenceduration.myhostname.mydomain.com)
Sep 28 17:44:59 conferenceduration.myhostname.mydomain.com:tls error Error creating context for c2s: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for conferenceduration.myhostname.mydomain.com.
)
Sep 28 17:44:59 conferenceduration.myhostname.mydomain.com:tls error Error creating contexts for s2sout: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for conferenceduration.myhostname.mydomain.com.
)
Sep 28 17:44:59 conferenceduration.myhostname.mydomain.com:tls error Error creating contexts for s2sin: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for myhostname.mydomain.com)
Sep 28 17:44:59 myhostname.mydomain.com:tls error Error creating context for c2s: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for myhostname.mydomain.com)
Sep 28 17:44:59 myhostname.mydomain.com:tls error Error creating contexts for s2sout: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for myhostname.mydomain.com)
Sep 28 17:44:59 myhostname.mydomain.com:tls error Error creating contexts for s2sin: error loading certificate (no start line)
Sep 28 17:44:59 portmanager error Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Sep 28 17:44:59 portmanager error Error binding encrypted port for https: No certificate present in SSL/TLS configuration for https port 5281
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for guest.myhostname.mydomain.com)
Sep 28 17:44:59 guest.myhostname.mydomain.com:tls error Error creating context for c2s: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for guest.myhostname.mydomain.com)
Sep 28 17:44:59 guest.myhostname.mydomain.com:tls error Error creating contexts for s2sout: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for guest.myhostname.mydomain.com)
Sep 28 17:44:59 guest.myhostname.mydomain.com:tls error Error creating contexts for s2sin: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for speakerstats.myhostname.mydomain.com)
Sep 28 17:44:59 speakerstats.myhostname.mydomain.com:tls error Error creating context for c2s: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for speakerstats.myhostname.mydomain.com)
Sep 28 17:44:59 speakerstats.myhostname.mydomain.com:tls error Error creating contexts for s2sout: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for speakerstats.myhostname.mydomain.com)
Sep 28 17:44:59 speakerstats.myhostname.mydomain.com:tls error Error creating contexts for s2sin: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for focus.myhostname.mydomain.com)
Sep 28 17:44:59 focus.myhostname.mydomain.com:tls error Error creating context for c2s: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for focus.myhostname.mydomain.com)
Sep 28 17:44:59 focus.myhostname.mydomain.com:tls error Error creating contexts for s2sout: error loading certificate (no start line)
Sep 28 17:44:59 certmanager error SSL/TLS: Failed to load ‘/etc/prosody/certs/myhostname.mydomain.com.crt’: Check that the file contains a certificate (for focus.myhostname.mydomain.com)
Sep 28 17:44:59 focus.myhostname.mydomain.com:tls error Error creating contexts for s2sin: error loading certificate (no start line)
Sep 28 17:45:20 mod_bosh error Traceback[bosh]: /usr/lib/prosody/modules/ldap.lib.lua:171: Connect error
stack traceback:
[C]: in function ‘assert’
/usr/lib/prosody/modules/ldap.lib.lua:171: in function ‘getconnection’
/usr/lib/prosody/modules/ldap.lib.lua:180: in function </usr/lib/prosody/modules/ldap.lib.lua:179>
(…tail calls…)
/usr/lib/prosody/modules/mod_auth_ldap2/mod_auth_ldap2.lua:54: in function ‘plain_test’
/usr/lib/prosody/util/sasl/plain.lua:75: in function </usr/lib/prosody/util/sasl/plain.lua:39>
(…tail calls…)
/usr/lib/prosody/modules/mod_saslauth.lua:77: in function </usr/lib/prosody/modules/mod_saslauth.lua:66>
(…tail calls…)
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/core/stanza_router.lua:142: in function ‘dispatch_stanza’
/usr/lib/prosody/modules/mod_bosh.lua:305: in function ‘func’
/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
stack traceback:
/usr/lib/prosody/util/async.lua:211: in function ‘run’
/usr/lib/prosody/modules/mod_bosh.lua:447: in function ‘cb_handlestanza’
/usr/lib/prosody/util/xmppstream.lua:182: in function </usr/lib/prosody/util/xmppstream.lua:162>
[C]: in function ‘parse’
/usr/lib/prosody/util/xmppstream.lua:282: in function ‘feed’
/usr/lib/prosody/modules/mod_bosh.lua:133: in function ‘?’
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/net/http/server.lua:228: in function </usr/lib/prosody/net/http/server.lua:176>
[C]: in function ‘xpcall’
/usr/lib/prosody/net/http/server.lua:108: in function ‘process_next’
/usr/lib/prosody/net/http/server.lua:124: in function ‘success_cb’
/usr/lib/prosody/net/http/parser.lua:177: in function ‘feed’
/usr/lib/prosody/net/http/server.lua:155: in function </usr/lib/prosody/net/http/server.lua:154>
(…tail calls…)
/usr/lib/prosody/net/server_select.lua:915: in function </usr/lib/prosody/net/server_select.lua:899>
[C]: in function ‘xpcall’
/usr/bin/prosody:80: in function ‘loop’
/usr/bin/prosody:90: in main chunk
[C]: in ?
Sep 28 17:46:17 mod_bosh error Traceback[bosh]: /usr/lib/prosody/modules/ldap.lib.lua:171: Connect error
stack traceback:
[C]: in function ‘assert’
/usr/lib/prosody/modules/ldap.lib.lua:171: in function ‘getconnection’
/usr/lib/prosody/modules/ldap.lib.lua:180: in function </usr/lib/prosody/modules/ldap.lib.lua:179>
(…tail calls…)
/usr/lib/prosody/modules/mod_auth_ldap2/mod_auth_ldap2.lua:54: in function ‘plain_test’
/usr/lib/prosody/util/sasl/plain.lua:75: in function </usr/lib/prosody/util/sasl/plain.lua:39>
(…tail calls…)
/usr/lib/prosody/modules/mod_saslauth.lua:77: in function </usr/lib/prosody/modules/mod_saslauth.lua:66>
(…tail calls…)
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/core/stanza_router.lua:142: in function ‘dispatch_stanza’
/usr/lib/prosody/modules/mod_bosh.lua:305: in function ‘func’
/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>
stack traceback:
/usr/lib/prosody/util/async.lua:211: in function ‘run’
/usr/lib/prosody/modules/mod_bosh.lua:447: in function ‘cb_handlestanza’
/usr/lib/prosody/util/xmppstream.lua:182: in function </usr/lib/prosody/util/xmppstream.lua:162>
[C]: in function ‘parse’
/usr/lib/prosody/util/xmppstream.lua:282: in function ‘feed’
/usr/lib/prosody/modules/mod_bosh.lua:133: in function ‘?’
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/net/http/server.lua:228: in function </usr/lib/prosody/net/http/server.lua:176>
[C]: in function ‘xpcall’
/usr/lib/prosody/net/http/server.lua:108: in function ‘process_next’
/usr/lib/prosody/net/http/server.lua:124: in function ‘success_cb’
/usr/lib/prosody/net/http/parser.lua:177: in function ‘feed’
/usr/lib/prosody/net/http/server.lua:155: in function </usr/lib/prosody/net/http/server.lua:154>
(…tail calls…)
/usr/lib/prosody/net/server_select.lua:915: in function </usr/lib/prosody/net/server_select.lua:899>
[C]: in function ‘xpcall’
/usr/bin/prosody:80: in function ‘loop’
/usr/bin/prosody:90: in main chunk
[C]: in ?