Skip to content

Using the SDK in a Firebase function (google cloud function) #334

Answered by bretambrose
NicolasGorga asked this question in Q&A
Discussion options

You must be logged in to vote

Firebase cloud functions will get executed on Linux, or at least yours is. On Linux, s2n will be used for TLS, while on Windows, the built-in SecureChannel API will get used.

I don't really have any insight with WSL or emulator details.

Returning to the original error, the line in question is here: https://github.com/aws/s2n-tls/blob/v1.3.37/tls/s2n_x509_validator.c#L529

Based on the context, s2n is failing the TLS handshake because it doesn't trust the certificate chain sent by the server. There's not much more information as it stands since it's the default arm of the switch statement, which itself is just checking the return value of a call into OpenSSL/libcrypto (X509_verify_cert).

If…

Replies: 7 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@NicolasGorga
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@NicolasGorga
Comment options

Comment options

You must be logged in to vote
2 replies
@NicolasGorga
Comment options

@NicolasGorga
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jmklix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants