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.

Certificate identity files are required in both prisma folder and in the folder from which lift is executed

See original GitHub issue

My folder structure is the following:

.
├── prisma
│   ├── migrations
│   │   ├── 20200107210356-init
│   │   └── lift.lock
│   └── schema.prisma
├── server-cert.pem
└── client-identity.p12

my connection string is postgresql://postgres:<REDACTED>@<REDACTED>:5432/postgres?schema=public&sslmode=require&sslcert=server-ca.pem&sslidentity=client-identity.p12&sslpassword=<REDACTED>

Now when I execute prisma2 lift save it ran into the following I/O error: image

Which is unexpected as the file is in the directory according to the path.

Now as a temporary workaround you can copy the server-cert.pem and client-identity.p12 to prisma folder and run all prisma command from that directory or maintain two copies of keys one in root and one in prisma folder.

I will like the cli to resolve paths relative to cwd and not to prisma folder.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
pantharshit00commented, Feb 20, 2020

We need to add this to the docs @nikolasburk

Opened: https://github.com/prisma/prisma2/issues/1663

1reaction
Jolg42commented, Feb 20, 2020

It works the same way in a .env file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prisma schema (Reference)
The Prisma schema is the main configuration file when using Prisma. It is typically called schema.prisma and contains your database connection and data ......
Read more >
Configure custom certs from a predefined directory
Scenario: Console/Defender starts and finds the predefined custom certificates directory mounted, but not all of the required files exist.
Read more >
prisma/prisma 2.0.0-preview023 on GitHub - NewReleases.io
New release prisma/prisma version 2.0.0-preview023 on GitHub. ... Certificate identity files are required in both prisma folder and in the folder from which...
Read more >
Archive for What's new in Azure Active Directory?
Identity Protection has added two new detections from Microsoft ... You need to make sure you're running a recent version of Azure AD ......
Read more >
Guidelines for concussion/mild traumatic brain injury and ...
+): If symptoms persist for more than 3 months, patients require an ... delayed complications by providing both verbal and written information.
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