Open man4567890 opened 3 years ago
It's a bit late for you, but I just ran into this myself. Issue is that the default is some fake keys in the RTCMulticonnection repo, which are not overridden by the fields in server.js. You need to update config.json with the real letsencrypt keys, something like this:
cat config.json
{
"socketURL": "/",
"dirPath": "",
"homePage": "/",
"socketMessageEvent": "RTCMultiConnection-Message",
"socketCustomEvent": "RTCMultiConnection-Custom-Message",
"port": "9001",
"enableLogs": "false",
"autoRebootServerOnFailure": "false",
"isUseHTTPs": "true",
"sslKey": "/etc/letsencrypt/live/libbybot.example.com/privkey.pem",
"sslCert": "/etc/letsencrypt/live/libbybot.example.com/fullchain.pem",
"sslCabundle": "/etc/letsencrypt/live/libbybot.example.com/chain.pem",
"enableAdmin": "false",
"adminUserName": "username",
"adminPassword": "password"
}
Hi I'm running Ubuntu 21.04 and I get this error when starting the server
sudo certbot --apache -d xxxxxxx
Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator apache, Installer apache Cert not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry. (ref: /etc/letsencrypt/renewal/xxxxxx)
What would you like to do?
1: Attempt to reinstall this existing certificate 2: Renew & replace the certificate (may be subject to CA rate limits)
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1 Keeping the existing certificate Deploying Certificate to VirtualHost /etc/apache2/sites-enabled/xxxxxxx-le-ssl.conf Enhancement redirect was already set.
Congratulations! You have successfully enabled https://xxxx
IMPORTANT NOTES:
If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-le
:/var/www/iot-digitata.com/RTCMultiConnection$