Where are .pem files located?

Hi,

I want to re-use the certificates generated by Let’s Encrypt for my Synology NAS. For this I need to export the pem files and upload them to the NAS. Problem is I can’t seem to find the right files. I need a key.pem, chain.pem and cert.pem. I’m on Ubuntu 16.04 LTS

I have read the files should be in /etc/letsencrypt/ but this folder doesn’t exist on my server. I have found some files in my home folder (~/.caddy) but I think these are not te correct files. Can someone point me in the right direction?

Thanks in advance.

Chris

Hi Chris,

If you run Caddy without any extra configuration, they’ll be in ~/.caddy/acme/sites/<your site>.

The certificate file is a bundle – so the leaf certificate and its intermediate are put together. The key is of course by itself in an adjacent file. Hope this helps!

Hi Matt,

Thank you. Will try and upload the those files.

Thank you, worked like a charm :slight_smile:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.