question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bubblewrap update throws ERROR unable to verify the first certificate

See original GitHub issue

Describe the bug I decided to use bubblewrap update to regenerate and update projet (this is not the first time I do it). Unfortunately the CLI can’t start updating and throws the following error: cli ERROR unable to verify the first certificate (can be seen on the screenshot too). This happen no matter if I write different app version or skip this step.

To Reproduce Steps to reproduce the behavior:

  1. Navigate to your bubblewrap project folder
  2. Run bubblewrap update (doesn’t matter if you chose different app versionName or not)

Expected behavior Bubblewrap should regenerate the Android project and update your app version code in the twa-manifest.json file

Screenshots image

Additional context I use the latest version of the bubblewrap cli (1.18.0) Maybe worth to notice that the bubblewrap build command still works just fine and builds the app.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
hardmaster92commented, Aug 9, 2022

I’m getting the same error-- has stopped me right in my tracks. I’m using one of those free “Let’s Encrypt” certificates via “certbot” on my Apache server. Some software has issues with those not being trusted.

Is there a way to disable Bubblewrap’s SSL cert validation? I see it can be done with one line of code in Node apps, but it’d probably need to be exposed here as a command line parameter?

EDIT: Figured it out! Was as simple as one line change in my Apache SSL configuration: https://community.letsencrypt.org/t/unable-to-verify-the-first-certificate/140756

Maybe this will help @hardmaster92 too?

Tried that but weirdly enough didn’t help… I restarted the apache server but still the same.

EDIT: Actually I fixed the issue. I had to provide a SSLCertificateChainFile to the Apache configuration as well. The Apache docs say:

SSLCertificateChainFile became obsolete with version 2.4.8, when SSLCertificateFile was extended to also load intermediate CA certificates from the server certificate file.

But my server version is 2.4.6 😄 so I had to add it. Adding it fixed the original issue so let this stay here as an info to whoever uses Apache server with version < 2.4.8.

0reactions
hardmaster92commented, Aug 21, 2022

Closing the issue with the following comment to whoever finds it:

If you are running your web app on an Apache/httpd server, make sure you provide the path to the fullchain.pem certificate for SSLCertificateFile as mentioned here: https://community.letsencrypt.org/t/unable-to-verify-the-first-certificate/140756

If the version of the Apache server is < 2.4.8 you have to provide a SSLCertificateChainFile (pointing to the chain.pem certificate) to the Apache configuration as well, based on their docs:

SSLCertificateChainFile became obsolete with version 2.4.8, when SSLCertificateFile was extended to also load intermediate CA certificates from the server certificate file.

I hope this helps

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: unable to verify the first certificate in nodejs
It means that the webserver you are connecting to is misconfigured and did not include the intermediate certificate in the certificate chain it...
Read more >
Error: unable to verify the first certificate. How to fix? - NodeBB
As that answer on SO says, the error unable to verify the first certificate means that the webserver you are connecting to is...
Read more >
node-fetch fails to get manifest (because cert is newly issued?)
This bug was first filed here on the PWABuilder repo. I believe the error is coming from Bubblewrap itself, likely the TwaManifest.
Read more >
Unable to verify the first certificate - Bugs - Bubble Forum
Hello, I am getting an issue when going for the API call from the API connector plugin while it's working from the postman...
Read more >
Unable to Verify First Cert Issue - Enable SSL Cert Verification
Navigate to Certificate > Web Hosting > Certificates and select your SSL cert · Then right click and select “All Task” & “Export”...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found