Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

firebase-tools “Error: certificate has expired”

  • 1

This morning I tried to deploy my react project to firebase hosting but I received this error:

Error: Server Error. certificate has expired

Then I tried to execute firebase list command to see the list of my projects but again I received the same error! I tried it on other projects with the same result. So I believe this error is not related to a specific project and it has something to do with firebase-tools. Here is the error log:

[debug] [2020-01-07T03:37:57.789Z] > command requires scopes: ["email","openid","","",""]
[debug] [2020-01-07T03:37:57.789Z] > authorizing via signed-in user
[debug] [2020-01-07T03:37:57.792Z] >>> HTTP REQUEST GET  

[debug] [2020-01-07T03:37:58.566Z] Error: certificate has expired
    at TLSSocket.<anonymous> (_tls_wrap.js:1116:38)
    at emitNone (events.js:106:13)
    at TLSSocket.emit (events.js:208:7)
    at TLSSocket._finishInit (_tls_wrap.js:643:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:473:38)
[error] Error: Server Error. certificate has expired
Click to rate this post!
[Total: 0 Average: 0]
Share This Post
  1. In order to access an observable value you need to use the if you are using the value in the template.

    If you want to access it in the .ts file you need to subscribe to it and wait for it to resolve like:

    this.paswdProfile$.subscribe(profile => {
        const numbers = profile.numbers;
    • 0
  2. You don’t get a reference to the object. You get a reference to the Observable. You need to subscribe to the Observable and store the result. This is done asynchronously.

        .subscribe(profile => this.paswdProfile$ = profile);
    • 0
  3. OK, I find the solution. First, do this:

    npm i -g [email protected]

    It looks like I’m using an outdated version of Firebase CLI. This error happened because the older versions of CLI are linked to legacy Firebase services that are no longer operational. Upgrading to the latest CLI version is the only solution.

    Then you need to use new commands instead of deprecated ones. For example:

    firebase projects:list  // instead of firebase list"
    • 0
Leave an answer

Leave an answer