Asterisk LetsEncrypt certificate unable to load

Hello,

I have gone through various threads regarding Letsencrypt implementation in Asterisk but i am facing the below mentioned issue and going crazy in order to identify what wrong i have done.

http.conf

[general]
enabled=yes
bindaddr=0.0.0.0
bindport=8088
tlsenable=yes
tlsbindaddr=0.0.0.0:8089
tlscertfile=/etc/asterisk/keys/fullchain.pem

i am getting below error when i am doing reload http
tcptls.c:421 __ssl_setup: TLS/SSL error loading private key file

but when i am using a self signed certificate its working properly

Note: i have tried all other pem file by lets encrypt. i am getting the same error.
i used the certbot to installed letsencrypt.

Please help me resolve this issue.

You need to provide the private key as well. Example:

tlscertfile=/etc/letsencrypt/live/domain/fullchain.pem
tlsprivatekey=/etc/letsencrypt/live/domain/privkey.pem
2 Likes

Thank you so much … It worked. I am able to implement it correctly.