Install my certificate on PhotoPrism #4131
Closed
AlexanderPanshin
started this conversation in
General
Replies: 1 comment 6 replies
-
Certificate and key should both be in pem format. We can't use pem as file extension for both, so we use crt for the certificate and key for the private key - following the conversation that the Lego CLI command uses. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings comrades, I need your help.
I want to install my certificate on PhotoPrism.
The essence of the problem is this: I have my own server, I have a lot of services running on it, a web server, open fire and the like.
The domain is parked to the server swap.mysuperpain.com Certificates have been received through cerbot and are on the way
/etc/letsencrypt/live/swap.mysuperpain.com/
there are 4 files there
The instructions say:
To use your own certificates, you can add a custom TLS certificate and private key to the storage/config/certificates folder with the filenames www.example.com.crt and www.example.com.key, replacing www.example.com with the actual server domain.
To do this, I convert my pem certificates to crt and key
Commands:
openssl x509 -outform der -in fullchain.pem -out swap.mysuperpain.com.crt openssl rsa -outform der -in privkey.pem -out swap.mysuperpain.com.key
I install PhotoPrism via docker compose here is the configuration file of the following:
I copy the certificates to
/srv/dev-disk-by-uuid-7/photoprisma/data/storage/config/certificates/
so there are 2 files there
swap.mysuperpain.com.crt and swap.mysuperpain.com.key
but then the default PhotoPrism certificate is loaded, and not mine, of course, this is not what I wanted.
I tried changing the name of certificates in the folder /srv/dev-disk-by-uuid-7/photoprisma/data/storage/config/certificates/ and configurations to
I had a thought, I specified the full path to the pem certificate in the configuration file
But the result is always the same. I get not my own certificate, but the default PhotoPrism certificate. Please tell me where I make a mistake.
Beta Was this translation helpful? Give feedback.
All reactions