Replies: 1 comment 1 reply
-
|
Could you please show your |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using a docker compose environment (too big to paste here).
I am creating the private/public keys using symfony + lexik jwt generator to output public and private .pem(s)
then in the same container I am using this entrypoint to convert them to what is supposed to be mercure unencrypted format:
openssl rsa -in /app/config/jwt/private.pem -passin env:JWT_PASSPHRASE -out /app/config/jwt/private_mercure.pem
openssl rsa -in /app/config/jwt/private_mercure.pem -pubout -RSAPublicKey_out -out /app/config/jwt/public_mercure.pub
chmod 644 /app/config/jwt/public_mercure.pub
chmod 644 /app/config/jwt/private_mercure.pem
(I ended up decrypting the private key as I found multiple posts online saying that encrypted private keys do not work)
Then the newly created keys are then mounted into the mercure container like this (pasting the whole composer service for clarity):
Of course these need to be converted
so in the mercure service entrypoint I now have:
I've been bashing my brains with trial and error for over 2 days now but no matter what happens I end up bashing my head against the same wall:
I am going bonkers so if someone can please help???
P,S. setting up a custom Caddyfile and loading the files directly ends up in the exact same thing, so I went back to "basics" and went with everything to defaults and tried to respect the configs in the documentation to the letter
Beta Was this translation helpful? Give feedback.
All reactions