Upload a certificate already generated with OPNsense.

DarkCorner

Explorer
Joined
Oct 23, 2022
Messages
66
I generated a Let's Encrypt certificate on OPNsense for *.mydomain.tld.

I have a NAS with hostname nas.mydomain.tld.
How can I use the same certificate without creating it again?

In OPNSense I see that there is an option in "Automation" to add the certificate on TrueNAS Core, using TrueNAS API keys.
Do you know if it is also valid for TrueNAS SCALE?
I tried to create it using the API generated on my TrueNAS SCALE, but then I can't find anything new in the NAS.

Thanks in advance.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Do you know if it is also valid for TrueNAS SCALE?
It should; the API calls are the same between the two. Here's my solution:

The deploy hook in acme.sh (which is what OPNsense uses) is based on this, so should work the same way, but I haven't used it. You might want to check if there are any errors in your logs on the OPNsense box to indicate what's happening.
 
Top