Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keybaseapi.com SSL cert expired 2023-12-31 #4219

Closed
daveyarwood opened this issue Dec 31, 2023 · 38 comments
Closed

keybaseapi.com SSL cert expired 2023-12-31 #4219

daveyarwood opened this issue Dec 31, 2023 · 38 comments

Comments

@daveyarwood
Copy link

Everything in Keybase stopped working for me just now. It looks like a cert needs to be updated:

$ keybase login
▶ ERROR unexpected error in Login: API network error: Get "https://api-0.core.keybaseapi.com/_/api/1.0/merkle/root.json?c=1&last=25285442&skip_last=1": x509: certificate has expired or is not yet valid: current time 2023-12-31T11:52:11-05:00 is after 2023-12-31T16:42:33Z

Possibly related: #4170

@daveyarwood
Copy link
Author

Reddit thread

@jasonkuehl
Copy link

Looks like someone doesn't monitor cert dates as this keeps happening.

@simonforget
Copy link

The certificate itself is still valid. It might be related to the issuing certificate.

@gene1wood
Copy link

Also reported in keybase/client#26088 and keybase/client#26089

@dwhagar
Copy link

dwhagar commented Dec 31, 2023

I'm done with Keybase, I can't access any of the encrypted files that I need to access today. Can't send any logs, the Keybase API server has some kind of certificate error, looks like it expired today. One would think that someone at Keybase would be paying attention.

@kg4zow
Copy link

kg4zow commented Dec 31, 2023

The certificate itself is still valid. It might be related to the issuing certificate.

The expired certificate is within the keybase executable on my computer. This is the certificate used to verify the api-0.core.keybaseapi.com server. Verifying this server's certificate against a fixed CA is part of how they detect MITM attacks.

Short version, the only way this can be fixed would be to build and release new client executables. The ones currently on our computers and mobile devices will never be able to log in again.

I just updated my copy of the client source repo. @mmaxim updated the internal CA certificate within the client about half an hour ago (see commit fbebbc9f1ba29e21ae6d3ee2edc21a7703d0019f).

One good thing is, we won't have to worry about it expiring any time soon.

$ sed -n '/BEGIN CERT/,/END CERT/p' ca.go | openssl x509 -noout -startdate -enddate
notBefore=Dec 31 19:03:19 2023 GMT
notAfter=Dec 31 19:03:19 6023 GMT

My guess is that he's building new releases as we speak, and we're all going to have to download and install newer clients for computers later today. We'll also have to update the iOS/Android clients some time in the next few days, depending on how long it takes for the apps to make it through the app stores' review process.

@dwhagar
Copy link

dwhagar commented Dec 31, 2023 via email

@samira
Copy link

samira commented Dec 31, 2023

Different error now, "certificate signed by unknown authority".

@kg4zow
Copy link

kg4zow commented Dec 31, 2023

Different error now, "certificate signed by unknown authority".

That's probably because he's updated the api-0.core.keybaseapi.com server with a certificate signed by the new CA. Your Keybase client is refusing to connect because it thinks a MITM attack is in progress.

You'll need to wait until v6.2.4 is available for download. Versions prior to this will never work again.

@vookimedlo
Copy link

Keybase clients were rolled out - at least the macos version and android version.
image

Works flawlessly! Thanks!

@Fflaviacy
Copy link

Same problem, I uninstalled the one on my iphone but now I can't log in, it keeps showing a network error. Anyone know how long it will take them to fix it? Or can anyone recommend any other better apps?

@vookimedlo
Copy link

@Fflaviacy Apple requires a review process for all iOS application submitted to their app store, which takes non-trivial amount of time on their side. So, if keybase team has already submitted their updated app, you can expect its availability in the app store in couple of days.

Currently, there is only the old version available.
image

@Fflaviacy
Copy link

@Fflaviacy Apple requires a review process for all iOS application submitted to their app store, which takes non-trivial amount of time on their side. So, if keybase team has already submitted their updated app, you can expect its availability in the app store in couple of days.

Currently, there is only the old version available. image

So now we just have to wait?

@ayoublind
Copy link

I am writing to report a critical issue we have encountered with the Keybase API, which is significantly impacting our operations. Our alert scripts, which rely on your API, are currently not functioning due to this problem.

Error Details:
We are receiving the following error when attempting to access the Keybase API:

go
Copy code
ERROR API network error: Post https://api-0.core.keybaseapi.com/_/api/1.0/ping.json: x509: issuer name does not match subject from issuing certificate
This error suggests a potential issue with an SSL/TLS certificate in the API's chain of trust, possibly related to the certificate issuer name not matching the subject name.

Impact:
Due to this error, our alert scripts that depend on your API are unable to function. This is causing significant disruption to our monitoring and alerting processes.

Request for Assistance:
We kindly request your urgent assistance in resolving this issue. Could you please investigate this matter and provide us with an update on the cause of the error, along with an estimated time frame for a resolution?

@kg4zow
Copy link

kg4zow commented Jan 1, 2024

Can confirm, 6.2.5-20240101050825+3bdf76f84a (for macOS arm64) is working as expected.

@kg4zow
Copy link

kg4zow commented Jan 1, 2024

From @ayoublind ...

I am writing to report a critical issue we have encountered with the Keybase API, which is significantly impacting our operations. Our alert scripts, which rely on your API, are currently not functioning due to this problem.
...
Request for Assistance: We kindly request your urgent assistance in resolving this issue. Could you please investigate this matter and provide us with an update on the cause of the error, along with an estimated time frame for a resolution?

Did I miss something, do you have a service contract with Keybase? If so, where can I sign up for one?

If not ... is it smart to rely on a free service for critical notifications?

@ayoublind
Copy link

and @kg4zow how did you update the version of the keybase installed in linux ?
I have current versions :

Client:  6.0.2-20220610191041+a459abf326
Service: 6.0.2-20220610191041+a459abf326

@ayoublind
Copy link

Back To work by updating the cli version to the latest using :

sudo apt-get update
sudo apt-get upgrade keybase

@kg4zow
Copy link

kg4zow commented Jan 1, 2024

For CentOS 7 I ran yum update keybase, like I would for any other software update.

$ rpm -q keybase
keybase-6.2.4.20240101011938.ae7e4a1c15-1.x86_64

I haven't powered on the Debian 12 laptop in about a week so I haven't updated it yet, but as you pointed out, that'll be "apt update && apt upgrade keybase" ... and for the Tails stick I'll have to manually download the .deb file, store it in the persistent partition, and reboot.

@mathieujobin
Copy link

I downloaded the update from https://prerelease.keybase.io/ for Linux and its fixed.
deb packages on Kubuntu 23.10

@mathieujobin
Copy link

I hope there will be a solution for my aunt which is on a old version of MacOS X

@fishcharlie
Copy link

iOS client update now released on the App Store.

@joshblum
Copy link
Member

joshblum commented Jan 2, 2024

Please update to the latest client. Thanks!
https://x.com/KeybaseIO/status/1741990472560615473?s=20

@daveyarwood
Copy link
Author

Confirmed that the issue is fixed in Ubuntu 22.04 after updating to the latest client version (6.2.4).

Thanks to everyone involved for the relatively quick fix! 🙌

@DaveEveritt
Copy link

DaveEveritt commented Jan 2, 2024

You'll need to wait until v6.2.4 is available for download. Versions prior to this will never work again.

The connection problem turned up today (2 Jn 2023). This was already v6.2.4 but it fails, presumably still with the outdated certificate. Homebrew has 6.2.5(?) but fails to install because "there is already an App at '/Applications/Keybase.app'". Was unwilling to delete the existing v6.2.4 Keybase OS X app (unknown consequences?), yet there seems no way to update it to v6.2.5?

UPDATE: install v6.2.5 for OS X using Homebrew

  1. rename Keybase.app (e.g. KeybaseOLD.app)
  2. brew install --cask keybase
  3. Open Keybase check version: v6.2.5
  4. delete KeybaseOLD.app

@mmaxim
Copy link

mmaxim commented Jan 3, 2024

The certificate itself is still valid. It might be related to the issuing certificate.

The expired certificate is within the keybase executable on my computer. This is the certificate used to verify the api-0.core.keybaseapi.com server. Verifying this server's certificate against a fixed CA is part of how they detect MITM attacks.

Short version, the only way this can be fixed would be to build and release new client executables. The ones currently on our computers and mobile devices will never be able to log in again.

This reply by @kg4zow is exactly correct as to the nature of the problem, thanks for the great explanation!

Sorry for all the trouble folks, clearly not our finest hour here at Keybase, but hopefully everyone is up and running on all platforms.

@marcofranssen
Copy link

marcofranssen commented Jan 3, 2024

You'll need to wait until v6.2.4 is available for download. Versions prior to this will never work again.

The connection problem turned up today (2 Jn 2023). This was already v6.2.4 but it fails, presumably still with the outdated certificate. Homebrew has 6.2.5(?) but fails to install because "there is already an App at '/Applications/Keybase.app'". Was unwilling to delete the existing v6.2.4 Keybase OS X app (unknown consequences?), yet there seems no way to update it to v6.2.5?

UPDATE: install v6.2.5 for OS X using Homebrew

  1. rename Keybase.app (e.g. KeybaseOLD.app)
  2. brew install --cask keybase
  3. Open Keybase check version: v6.2.5
  4. delete KeybaseOLD.app

No luck on my side 🤔

$ brew update
$ brew install --cask keybase
==> Upgrading 1 outdated package:
Warning: Cask 'keybase' is unreadable: undefined method `before_colon' for "20210202191343:d72cc00cd3":Cask::DSL::Version
Did you mean?  before_comma

I'm on amd64 architecture on my Macbook.

Update

To resolve the error I removed the following file and run the install command again.

$ rm /usr/local/Caskroom/keybase/.metadata/5.6.2,20210202191343:d72cc00cd3/20210421075944.484/Casks/keybase.rb
$ brew install --cask keybase

I'm back in business 🎉

@kg4zow
Copy link

kg4zow commented Jan 3, 2024

For the record ... when I mentioned "6.2.4" being the new version in my comments above, I was going by the tag which I had just seen created in the git repo. Apparently the tags in the repo don't always "sync up" with the version number strings in the software, and the actual release which fixed things was 6.2.5.

My apologies for the confusion.

@viswa1a
Copy link

viswa1a commented Jan 9, 2024

I had the same issue in my ubuntu and I ran the following commands to fix it

sudo apt-get update
sudo apt-get upgrade keybase

@madzohan
Copy link

FYI Hmm my windows version didn't want to update for some reason from 2.3.1 so faced the same issue ... Fixed by manually downloaded keybase installer and now everything works fine on 6.2.5.5

@GottZ
Copy link

GottZ commented Jan 28, 2024

image
best meme of 2024..

showing a message that requires an up2date client that could access the api.
first seen after updating the client.

@lemuelf
Copy link

lemuelf commented Jan 29, 2024

[...]

One good thing is, we won't have to worry about it expiring any time soon.

$ sed -n '/BEGIN CERT/,/END CERT/p' ca.go | openssl x509 -noout -startdate -enddate
notBefore=Dec 31 19:03:19 2023 GMT
notAfter=Dec 31 19:03:19 6023 GMT

[...]

It sucks that I have to worry about it again after 4000 years!

@vraravam
Copy link

This issue is re-occurring with the latest keybase (downloaded just now). I have uninstalled, re-downloaded from the keybase.io website - and still the same!

@TheSkyIsBlottedOut
Copy link

based keybase users

@elisei-timofte
Copy link

Sorry I'm late to the party.

I have the same issue.
Screenshot 2024-03-14 at 12 44 24

My problem is that I was logged out from the phone and I'm not able to find my login credentials. If I update the client on mac (here I'm still logged in), will it force me to relogin?

Can somebody suggest a flow that will help me access my files stored in keybase?

@GottZ
Copy link

GottZ commented Mar 14, 2024

Can somebody suggest a flow that will help me access my files stored in keybase?

Just updating the client should be enough tbh.

@elisei-timofte
Copy link

Do I need to relogin after updating?

@GottZ
Copy link

GottZ commented Mar 16, 2024

Do I need to relogin after updating?

Well.. According to my chain, I did not revoke or re-create the device key during the update.

This means, you can just update the application.
I don't have a MacOS Device due to preference tho.. but I suggest just creating a backup of your keybase configuration directory before the update just in case.

Also.. WHY don't you have a paper key?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests