So I'm setting up full SSL for all of my sites, it uses a cert generated by Let's Encrypt and works flawlessly for the sites. As for sinusbot there had to be a work around
config.ini
bot log
So the /etc/letsencrypt/live directory is in fact protected so that's why the account sinusbot is running under can't access the cert.
So under root I copied the certificate and key and placed it in the sinusbot folder preferably in /opt/<sinusbot directory>/ssl, and it worked when I connected using https://bot.<domain>.com:8087. I haven't seen anyone do this before/post about it and I'd thought I'd share what I did. Sure there's cloudflare, but that wouldnt work since the origin ip would be different unless of course you used a reverse proxy (which btw I did try and failed since reverse proxy+cloudflare https=stuck at sinusbot loading).
New config.ini
config.ini
Code:
UseSSL = true
SSLKeyFile = "/etc/letsencrypt/live/<domain>/privkey.pem"
SSLCertFile = "/etc/letsencrypt/live/<domain>/fullchain.pem"
Hostname = "bot.domain.com"
Code:
2016/02/22 12:34:23 Error initializing HTTP-Server (SSL): open /etc/letsencrypt/live/<domain>/fullchain.pem: permission denied
So the /etc/letsencrypt/live directory is in fact protected so that's why the account sinusbot is running under can't access the cert.
So under root I copied the certificate and key and placed it in the sinusbot folder preferably in /opt/<sinusbot directory>/ssl, and it worked when I connected using https://bot.<domain>.com:8087. I haven't seen anyone do this before/post about it and I'd thought I'd share what I did. Sure there's cloudflare, but that wouldnt work since the origin ip would be different unless of course you used a reverse proxy (which btw I did try and failed since reverse proxy+cloudflare https=stuck at sinusbot loading).
New config.ini
Code:
UseSSL = true
SSLKeyFile = "/opt/ts3bot/ssl/privkey.pem"
SSLCertFile = "/opt/ts3bot/ssl/fullchain.pem"
Hostname = "bot.domain.com"