Making WebRTC work with GoDaddy SSL certificate

Status
Not open for further replies.

Zivk

Member
Apr 7, 2019
35
6
8
62
After struggling with GoDaddy SSL certificates trying to make FreeSWITCH WebRTC work, I finally made it and happy to share this knowledge.

For the (free) Let's Encrypt certificate, book FreeSWITCH 1.8 (page 100) says to do the following:
Code:
cat fullchain.pem privkey.pem > wss.pem
cat cert.pem privkey.pem > agent.pem
cat chain.pem > cafile.pem

But the certificate files received from GoDaddy are like:
Code:
8f89fe6c5bd42be7.pem
gd_bundle-g2-g1.crt
generated-private-key.pem

So as a preprocess step we perform the following:
Code:
cp 8f89fe6c5bd42be7.pem cert.pem
openssl x509 -in gd_bundle-g2-g1.crt -out chain.pem -outform PEM
cat cert.pem chain.pem > fullchain.pem
cp generated-private-key.pem privkey.pem
And now we can run the FreeSWITCH book instructions as listed above.
 
Last edited:
Status
Not open for further replies.