Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About ssl certificates #22

Open
talesmgodois opened this issue Apr 5, 2024 · 1 comment
Open

About ssl certificates #22

talesmgodois opened this issue Apr 5, 2024 · 1 comment

Comments

@talesmgodois
Copy link

I guess this is probably just a naive doubt.

But I have generated some certificates using certbot in order to use with nginx.

I wonder if they can be used to make portainer available with https.

these are the files it generated, however from portainer documentation, they are using crt and key files, not pem.

README  cert.pem  chain.pem  fullchain.pem  privkey.pem

Should I use theses keys he generated and do some conversion?
Should I generate it differently using certbot?

@evertramos
Copy link
Owner

Hello @talesmgodois,

You wouldn´t need to use them once you can reissue a new certificate through nginx-proxy. But if you want to use it you can, you will just need to add the certificates to the correct path in your nginx-proxy:

./data/certs/your-domain.com/

with these names:

cert.pem
chain.pem
fullchain.pem
key.pem

So you will need to rename the privkey to key.pem, and when you restart your portainer with the correct env variable to activate the letsencrypt for your service, it will automatically use your certificate already generated.

give a try and let me know if it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants