Hello community
if anyone (like me) needs to find SSL certificates generated by nextcloud-aio installation for other usage, there it is.
My need was to reuse nextcloud certificates for other docker images, like homeassistant (but not limited to it).
This as a temporary solution while implementing a reverse proxy architecture with Traefik that manages better the web entrypoints and redirections.
Nextcloud-aio stores the SSL certificates in apache docker, available in path
/var/snap/docker/common/var-lib-docker/volumes/nextcloud_aio_apache/_data/caddy/certificates/acme-v02.api.letsencrypt.org-directory/yourdomain.org
in this path you will have three files
-
yourdomain.org.crt← this is the public certificate file -
yourdomain.org.key← this is the private certificate file - yourdomain.org.json - ignore this
so copy
yourdomain.org.crt file to homeassistant/config/certs/fullchain.pem
yourdomain.org.key file to homeassistant/config/certs/privkey.pem
NOTE: there is no need to manipulate source certificates, just renaming the extention will work for homeassistant, for other usage refer to specific configuration needs.