Access a certificate from a template

Started by Mad-Onion, May 06, 2020, 03:07:19 PM

Previous topic - Next topic
Hi everyone,

I'm developing a plugin where I need to write the content of a certificate from the OPNsense's truststore to a local file. I already have a corresponding dropdown in the form and selecting / saving works well.

How can I access the certificates "content" from within a template? When I access it via the model's property, I just get a string like "5eb0efc71fa7f" - maybe its id / hash?

Best regards
Tobias


You find that Id in the certificate section of the config as well together with the certificate itself.