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

self signed certificate in certificate chain error #115

Closed
bhrott opened this issue Oct 20, 2017 · 9 comments
Closed

self signed certificate in certificate chain error #115

bhrott opened this issue Oct 20, 2017 · 9 comments

Comments

@bhrott
Copy link

bhrott commented Oct 20, 2017

  • Operating System version: Docker PM2
  • Firebase SDK version: 5.2.1
  • Library version: _____ (???)
  • Firebase Product: database (auth, database, storage, etc)

When use express with HTTPS we facing this error: 0|www | FIREBASE WARNING: {"code":"app/invalid-credential","message":"Credential implementation provided to initializeApp() via the \"credential\" property failed to fetch a valid Google OAuth2 access token with the following error: \"self signed certificate in certificate chain\"."}

When we use HTTP, no errors.

@google-oss-bot
Copy link

Hey there! I couldn't figure out what this issue is about, so I've labeled it for a human to triage. Hang tight.

@hiranya911
Copy link
Contributor

@bhrott
Copy link
Author

bhrott commented Oct 20, 2017

Hi @hiranya911,

When a try it, the error now is: 0|www | FIREBASE WARNING: {"code":"app/invalid-credential","message":"Credential implementation provided to initializeApp() via the \"credential\" property failed to fetch a valid Google OAuth2 access token with the following error: \"socket hang up\"."}

I try some other solutions for this error message but none of them works...

@hiranya911
Copy link
Contributor

Have you tried syncing your clock? Can you also share more details about your code and environment?

@bhrott
Copy link
Author

bhrott commented Oct 20, 2017

We are investigating if is some issue with our infrastructure.

For now we have these informations:

  • Firebase works in dev, on my machine independently HTTP or HTTPS.
  • Firebase works on my machine, inside a PM2 Docker container.
  • Firebase not works inside PM2 Docker container running on production VM (Ubuntu 16.04).

Two hypothesis:

  • Firebase have some issues with Ubuntu and SSL installed on the machine.
  • The SSL is not properly configured and causes this issue.

@bhrott
Copy link
Author

bhrott commented Oct 23, 2017

Resolved!

Our infraestructure was blocking some google services.
Closing =).

@bhrott bhrott closed this as completed Oct 23, 2017
@purusingh
Copy link

Hi there,

I am having the same issue. its workingon azure but locally in the office I am getting same error. can you please tell me what service is blocking google servies?

@hiranya911
Copy link
Contributor

Probably a corporate proxy/firewall.

@nhoctanker
Copy link

@benhurott Hello how to fix that . my copnay block some service . What service we need eabled

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

5 participants