I have been trying to get SSL up and working on Thinger.io private server. I have been able to get my fullchain.pem and my privkey.pem using cert bot stand alone via ssh (thank you for that). My question is how do you convert pem files or change the config file for thinger.io. Below is a cut and paste from their config file that deals with ssl and its requirements.
I have tried using renaming the keys in the certificates, I have tried changing the config file to call for the pem files. I am certain there is something significant I am missing any help or even a nudge in the right direction would be a huge help.
I suspect that ssl_certificate and ssl_certificate_key both accept PEM-encoded files, so you should be able to just use the paths to fullchain.pem and privkey.pem, respectively.
One thing I noticed, if you are running via Snap, as per the Thinger.io server deployment documentation, then Ubuntu’s AppArmor will prevent the process from reading your certificate and key from /etc/letsencrypt:
Copy the certificate and private key from /etc/letsencrypt to /var/snap/thinger-maker-server/common/certificates (and do that as part of the Certbot renewal hook), or
Adjust the AppArmor profile for Thinger to allow it to read from /etc/letsencrypt
You can adjust the AppArmor profile by modifying /var/lib/snapd/apparmor/profiles/snap.thinger-maker-server.thingerd, adding:
/etc/letsencrypt/archive/** r,
then reloading the profile:
sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.thinger-maker-server.thingerd
sudo service snap.thinger-maker-server.thingerd restart