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.

Log the expected location for ssl cert

See original GitHub issue

Problem

I’m trying to use prisma with Netlify functions, but I’ve been unable to get prisma to find my database ssl cert, no matter where I put it.

I get the following error, even with the cert file right next to my schema.prisma file.

Error opening a TLS connection: cert file not found (No such file or directory (os error 2))

Suggested solution

I’d suggest this error let you know where its actually looking. I’ve confirmed the file does exist in my serverless function, but without knowing where exactly prisma is looking I haven’t been able to update the path in my database url to point to the right place.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
moerikicommented, Apr 26, 2022

I used this little trick in my GitHub Actions to get around finding the right file.

export DATABASE_URL="${DATABASE_URL}&sslcert=$(pwd)/test-db.cert"
0reactions
pantharshit00commented, Jul 29, 2021

Uploading TLS certificates to netlify is problematic in first place, we really need https://github.com/prisma/prisma/issues/2817 here.

This is reproducible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Check SSL Certificates and Stay Secure - Keyfactor
There is an effortless way to check if a site uses SSL certificates. ... account and password details over the internet to log...
Read more >
SSL Certificate Location on UNIX/Linux - Server Fault
The CA certificates have their own directory, /etc/pki/CA/certs and /etc/pki/CA/private . For any given distribution, especially on hosted servers, I recommend ...
Read more >
A Simple Explanation of SSL Certificate Errors & How to Fix ...
Learn what an SSL certificate error is. Then walk through various steps you can take to fix the error and get your site...
Read more >
Troubleshoot SSL certificates | Load Balancing - Google Cloud
Recheck the status. If the status remains PROVISIONING_FAILED , the Google-managed certificate has been created, but the Certificate Authority can't sign it.
Read more >
Confirm That Certificates Are Deployed Correctly (Windows)
Learn how to confirm that a Group Policy is being applied as expected and that the certificates are being properly installed on the ......
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