# SSL error loading cert file

**URL:** <https://community.asterisk.org/t/ssl-error-loading-cert-file/40561>\
**Category:** Asterisk Support\
**Created:** [September 27, 2012, 9:26am UTC](https://community.asterisk.org/t/ssl-error-loading-cert-file/40561 "2012-09-27T09:26:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![msencoding](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@msencoding](https://community.asterisk.org/u/msencoding)\
**Post date:** [September 27, 2012, 9:26am UTC](https://community.asterisk.org/t/ssl-error-loading-cert-file/40561/1 "2012-09-27T09:26:38Z")

</div>

Hello,

I am trying to get TLS working on CentOS 5 with asterisk 1.8.15.1. After issued an asterisk.pem file, I have added the following to /etc/asterisk/sip.conf

tlsenable=yes  
tlsbindaddr=0.0.0.0  
tlscertfile=/etc/asterisk/keys/asterisk.pem  
tlscafile=/etc/asterisk/keys/ca.crt  
tlscipher=ALL  
tlsclientmethod=tlsv1

But when I reload sip.conf, I get the below error message about the cert.

“SSL error loading cert file. \</etc/asterisk/keys/asterisk.pem\>”

I have created the cert with this command

# ./ast\_tls\_cert -C [pbx.sorry.com](http://pbx.sorry.com) -O “My Computer” -d /etc/asterisk/keys

contents of /etc/asterisk/keys  
asterisk.crt  
asterisk.key  
asterisk.csr  
asterisk.pem  
ca.cfg  
ca.key  
ca.crt

Thanks.
