The module will load messages on startup if it fails to load for some reason, they are usually in /var/log/asterisk/messages or you can see them by manually starting Asterisk in your console.
[Mar 2 10:13:11] ERROR[2760] res_pjsip/config_transport.c: Transport: transport-tls: cert_file /home/asterisk/certs/self-signed.crt is either missing or not readable
So i changed the permissions of the file to 777 and the owner is the same user whos run asterisk, but still get the same message everytime i reload asterisk.
So, notice that has a dot after the permissions, and search some info about that. I find something about this dot has a relation with selinux, so i turned selinux to “permissive”, just to see what happens. After that i don’t get more error messages of cert. How could i config selinux to work without disable it?