Is my env properly written?
Answered
Alligator mississippiensis posted this in #help-forum
Alligator mississippiensisOP
Is the env attached as a picture is properly written?
I have to use it for a paddle library, it's the first time ever that I have an env written like this.
I get weird errors like:
"PEM routines:get_name:no start line"
"PEM routines:get_header_and_data:bad end line"
These made me think there's something wrong with the env
I have to use it for a paddle library, it's the first time ever that I have an env written like this.
I get weird errors like:
"PEM routines:get_name:no start line"
"PEM routines:get_header_and_data:bad end line"
These made me think there's something wrong with the env
Answered by joulev
it should be something like this
OTHER_ENV=helloworld
NEXT_PUBLIC_BLAH="first line\nsecond line\nthird line\n"
ANOTHER_ENV=byeworld20 Replies
@Alligator mississippiensis Is the env attached as a picture is properly written?
I have to use it for a paddle library, it's the first time ever that I have an env written like this.
I get weird errors like:
"PEM routines:get_name:no start line"
"PEM routines:get_header_and_data:bad end line"
These made me think there's something wrong with the env
it should be something like this
OTHER_ENV=helloworld
NEXT_PUBLIC_BLAH="first line\nsecond line\nthird line\n"
ANOTHER_ENV=byeworldAnswer
Alligator mississippiensisOP
like this?
no, as in each env should only be on one line
well just paste that public key here
i will format it for you
@joulev no, as in each env should only be on one line
Alligator mississippiensisOP
so sorry, before you do, is this what you mean?
i think you need a \n after -----END PUBLIC KEY----- as well
Alligator mississippiensisOP
damn with /n at the end I get this error:
ERR_OSSL_PEM_BAD_END_LINE
but without i get this error:
ERR_OSSL_PEM_NO_START_LINE
I don't write the string inside "" though, it also gave me errors, should i?
ERR_OSSL_PEM_BAD_END_LINE
but without i get this error:
ERR_OSSL_PEM_NO_START_LINE
I don't write the string inside "" though, it also gave me errors, should i?
try "" then
Alligator mississippiensisOP
now it says ERR_OSSL_PEM_BAD_END_LINE for both with \n at the end and without
console.log the value, how does it show up?
Alligator mississippiensisOP
looks like this, seems good
@Alligator mississippiensis looks like this, seems good
-----END PUBLIC KEY----- not----END PUBLIC KEY-----there are five dashes
Alligator mississippiensisOP
without these parts completely or without dashes?
@Alligator mississippiensis without these parts completely or without dashes?
your end public key has 4 dashes at the front
it must be exactly 5 dashes
Alligator mississippiensisOP
omg idk how it happened, i think it solved it. This is not the first time you help me, I have great appriciation for your help! thank you!
you're welcome