nitro icon indicating copy to clipboard operation
nitro copied to clipboard

NITRO_SSL_CERT/KEY path value leading to "no start line" errors

Open Kitanga opened this issue 3 months ago • 1 comments

I'm using Nitropack v2.12.4 and I've had to augment the built code in order for my SSL certs to work

I had been getting "no start line" errors for 2 days or so. I knew my cert and key were valid, but for some reason, no matter what I changed, nitro refused to serve my project via https mode.

So finally I decided to change the nitro source code in order to try and see where the issue was.

I placed the paths in my .env file like so:

NITRO_SSL_CERT="/path/to/certs/cert.pem"
NITRO_SSL_KEY="/path/to/certs/key.pem"

Nitro got the ssl paths but still I got the same error.

I had to change:

Image

to this:

Image

And this ended up working.

Now my question is, is this a bug?

Kitanga avatar Sep 10 '25 09:09 Kitanga

The NITRO_SSL_CERT/NITRO_SSL_KEY are passed directly to the Server, so they should always be the content of the SSL cert and key for now, not the file path.

But I'm wondering if we can automatically read the content when passed a path for better DX 🤔

kricsleo avatar Sep 13 '25 10:09 kricsleo