Error fixing and reason of error in asterisk 13.18

"tcptls.c: TLS/SSL error loading cert file. </etc/asterisk/generated.key.file>" how to fix it and what is the reason of this error ? after this error asterisk stops working.If anyone have the solution and reason of this error then share asap.

SSL_CTX_use_certificate_chain_file() from the OpenSSL library, returned an error when trying to open the certificate chain file that you provided.

I’m not sure that Asterisk returns the additional debugging information from OpenSSL. but I would assume that either the file has inappropriate permissions, or it is not a valid certificate chain file.