bbb-install icon indicating copy to clipboard operation
bbb-install copied to clipboard

certificate has expired with nodejs

Open yazilimevde opened this issue 5 years ago • 10 comments

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' }

yazilimevde avatar Sep 30 '21 21:09 yazilimevde

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 avatar Sep 30 '21 21:09 GhaziTriki

@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"

vlasov01 avatar Sep 30 '21 23:09 vlasov01

@GhaziTriki Worked for me as well. Thanks!

carlosr279 avatar Sep 30 '21 23:09 carlosr279

@GhaziTriki @vlasov01 @carlosr279 Worked for me as well. Thank you so much everyone!

yazilimevde avatar Sep 30 '21 23:09 yazilimevde

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?

iparaskev78 avatar Oct 01 '21 07:10 iparaskev78

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/

Creatice-Daniel avatar Oct 01 '21 12:10 Creatice-Daniel

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

emadbagheri96 avatar Oct 01 '21 13:10 emadbagheri96

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.

dr-jkl avatar Oct 05 '21 21:10 dr-jkl

Took me way too long to find this very helpful, thanks!

boarsteas1 avatar Oct 19 '21 11:10 boarsteas1

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.

nasilaj avatar Oct 19 '21 12:10 nasilaj