Support intro
Sorry to hear you’re facing problems. 
The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.
If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.
Getting help
In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.
Before clicking submit: Please check if your query is already addressed via the following resources:
- Official documentation (searchable and regularly updated)
- How to topics and FAQs
- Forum search
(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).
I use pfSense for my firewall at home. Apart from as a general firewall I use pfSense for two purposes:
-
NextCloud, hosted on a virtual machine. I use
nextcloud.enable-https lets-encryptto manage the certificate. I do not use a proxy. Instead what I do is just forward ports 443 and 80 straight to the NextCloud VM. I may need to change this. -
VPN. For this I went down the self-signed route, which is clumsy, but at the time was the easy way to just get it going. But now I want to manage this certificate with Let’s Encrypt too.
I want to use ACME to manage the certificate for both applications. By this I mean that I would like to:
-
Have pfSense use ACME to automatically manage the certificate used for my VPN. I will need to do this using a file stored on a web server because my dynamic DNS hoster won’t support the DNS method without me paying them even more money.
-
Have NextCloud still use its own ACME implementation to manage its certificate directly.
The problem then becomes that I will need the firewall to also host a file at port 80 for ACME to work. But that would break Let’s Encrypt on NextCloud. I think this means I will need to install a reverse proxy. But even if I do that, I think nextcloud.enable-https lets-encrypt will still not work because when Let’s Encrypt reaches back to me it will just go to http:// and not to something like http:///nextcloud.
I guess I could just terminate TLS at the firewall using the reverse proxy, but then I think that might break my phone client when I am at home because NextCloud would change from HTTPS to HTTP.
Is there a way to get the two to co-exist so that both certificates can be managed automatically?