How to add certificate

I’m trying to use a powershell stack to wake, unlock, etc. a home nas and apparently need more than a localhost cert. Is it possible to clone the default cert, changing the CN to lan?

See this wiki for obtaining a Lets Encrypt certificate for TrueNAS SCALE

Thanks for the link, was hoping for a different option.

I managed to get a certificate following this video.

Make sure you set up a wild card certificate as this will become handy if you need to use more than one web address.