certificate has expired with nodejs
i have a bigbluebutton meeting url. I access via postman and browser without any problem and I get the success code. But when I send https get request to the url in my nodejs project, I get certificate has expired error. What can be the problem?
let createApiUrl = `https://bbb.example.com/bigbluebutton/api/create?name=${meetingName}&logoutURL=${logoutUri}&record=true&meetingID=${meetingId}&attendeePW=${attendeePW}&moderatorPW=${moderatorPW}&checksum=${checkSum}`;
response = await new Promise((resolve, reject) => {
return HTTP.call("GET", `${createApiUrl}`, {}, (error, response) => {
if (error) {
reject(error);
} else {
resolve(response);
}
});
});
Error message =>
Error: certificate has expired at TLSWrap.ssl.onhandshakedone code: 'CERT_HAS_EXPIRED' }
Are you using BBB 2.2.x with let's encrypt? If yes check this : https://groups.google.com/g/bigbluebutton-setup/c/U3Xj_hQSe5s
@GhaziTriki Thank you! The solution from the link you provided is working for me. Here are the commands:
sudo apt-get remove certbot
sudo apt-get install snapd
sudo snap install --classic certbot
sudo certbot renew --force-renewal --cert-name <your.domain.com> --preferred-chain "ISRG Root X1"
@GhaziTriki Worked for me as well. Thanks!
@GhaziTriki @vlasov01 @carlosr279 Worked for me as well. Thank you so much everyone!
Worked for me too! The problem appeared yesterday evening the same time to our 2 installations. The one is BigBlueButton Server 2.2.22 (2088) and the other is BigBlueButton Server 2.2.35 (2390) both 16.04.7 LTS (Xenial Xerus). My question is if now the auto - renewal will still work?
Worked for me too, thanks ! For info, I also had to update the kernel : https://dausruddin.com/ubuntu-system-does-not-fully-support-snapd-cannot-mount-squashfs-image-using-squashfs/
Are you using BBB 2.2.x with let's encrypt? If yes check this : https://groups.google.com/g/bigbluebutton-setup/c/U3Xj_hQSe5s
thanks alot! it works.
just there is a need to restart nginx after that too:
sudo /etc/init.d/nginx restart
I found a solution too, talking to rg305 on the Let's Encrypt Community (thanks!) and I think it is worth to share: on the server
- run "dpkg-reconfigure ca-certificates" and uncheck the old C.A. "mozilla/DST_Root_CA_X3.crt"
- edit "/etc/letsencrypt/live/bbb.example.com/fullchain.pem" with nano or similar editor and delete the last certificate -----BEGIN CERTIFICATE----- BLAHBLAHBLAH -----END CERTIFICATE-----
- restart nginx with "sudo /etc/init.d/nginx restart" I hope this will help.
Took me way too long to find this very helpful, thanks!
I do not understand your office and how it operates. I failed to install BBB and your many messages do not help me
i m disappointed
On Tue, Oct 19, 2021 at 1:35 PM boarsteas1 @.***> wrote:
Took me way too long to find this very helpful, thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bigbluebutton/bbb-install/issues/432#issuecomment-946634736, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVIX3MKYTGWEGPX2LPGDU5TUHVJZTANCNFSM5FDILYPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.